Replies: 3 comments 7 replies
|
You can use export BROWSER="/path/to/browser"You can add it your Exit the terminal and open it again. Run |
|
You can update start in package.json to credits: #11873 (comment) |
|
This usually happens when the BROWSER environment variable is not picked up correctly. Try this depending on your system: For Linux (Ubuntu): For a custom path: Also make sure:
If it still opens the default browser, try creating a .env file in your project root: BROWSER=firefox Then restart your app. This should force React to open in the specified browser. Let me know if this works 👍 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I saw in the online documentation that it is possible to use a specific browser then starting my app with
npm startusing theBROWSERenvironment variable.I tried many times with different configurations targeting different installed browsers .
BROWSER=~/dev/firefox-dev/firefox/firefox npm startBROWSER=brave npm startEverytime, it just started with my default browser without any additional output.
Any idea why this isn't working?
Edit: Ubuntu 20.04 if it helps
All reactions