Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The environment variable CHROME_PATH must be set to executable of a build of Chromium #231

Open
NeonWizard opened this issue Apr 24, 2021 · 5 comments

Comments

@NeonWizard
Copy link

NeonWizard commented Apr 24, 2021

Describe the bug
When executing vuese preview path/to/file, I get the following error:

(node:6786) UnhandledPromiseRejectionWarning: Error: The environment variable CHROME_PATH must be set to executable of a build of Chromium version 54.0 or later.
    at linux (REDACTED/node_modules/carlo/lib/find_chrome.js:84:11)
    at findChrome (REDACTED/node_modules/carlo/lib/find_chrome.js:230:24)
    at Object.launch (REDACTED/node_modules/carlo/lib/carlo.js:594:42)
    at module.exports (REDACTED/node_modules/vuese/lib/preview.js:27:29)
    at Command.cli.command [as handler] (REDACTED/node_modules/vuese/bin/cli.js:46:30)
(node:6786) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:6786) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

To Reproduce
Steps to reproduce the behavior:

  1. npm install -g vuese
  2. vuese preview path/to/file

Environmental information:

> vuese -v
1.4.7

Running on WSL2

@IWANABETHATGUY IWANABETHATGUY added the bug Something isn't working label Apr 24, 2021
@screetBloom
Copy link
Member

screetBloom commented Apr 28, 2021

@NeonWizard

Please provide the version of @vuese/cli

you can enter the following command in terminal

vuese -v

If you are not globally installed, you can npx vuese -v



Better give me a screenshot

like this
image



Solve this problem

After my testing, it works fine in version 2.14.x, so you can fix it like this

  • Install the latest version of @vuese/cli
  • Make sure the version is 2.14.x
  • vuese preview filename.vue

image

yarn global remove @vuese/cli

yarn global add @vuese/cli

@screetBloom screetBloom added have solution and removed bug Something isn't working labels Apr 28, 2021
@NeonWizard
Copy link
Author

NeonWizard commented May 9, 2021

@NeonWizard

Please provide the version of @vuese/cli

you can enter the following command in terminal

vuese -v

If you are not globally installed, you can npx vuese -v

Better give me a screenshot

like this

Solve this problem

After my testing, it works fine in version 2.14.x, so you can fix it like this

  • Install the latest version of @vuese/cli
  • Make sure the version is 2.14.x
  • vuese preview filename.vue
yarn global remove @vuese/cli

yarn global add @vuese/cli

I'm pretty sure it doesn't work because it's being used on WSL. Your solution does not work.

@NeonWizard
Copy link
Author

@screetBloom I'm still having the issue. My original post includes the version used, all the information to reproduce, the machine it's running on, etc. I'm not entirely sure why you removed the bug label.

@HcySunYang

@NeonWizard
Copy link
Author

You may want to reference this, if you haven't added WSL support to this library.

GoogleChrome/chrome-launcher#27

@NeonWizard
Copy link
Author

@screetBloom @HcySunYang Bump. Just a reminder this issue was incorrectly marked as having a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants