`'BROWSER' is not recognized as an internal or external command`
littleclown opened this issue · 2 comments
littleclown commented
The original scripts will get warning in powershell and exit code 1.
I found a solution maybe to fix this problem:
Use the following config
"scripts": {
"electron:dev": "concurrently \"cross-env BROWSER=none yarn start\" \"wait-on http://localhost:3000 && tsc -p electron -w\" \"wait-on http://localhost:3000 && tsc -p electron && electron .\"",
},
"devDependencies": {
"cross-env": "^7.0.3"
}
instead of
"scripts": {
"electron:dev": "concurrently \"BROWSER=none yarn start\" \"wait-on http://localhost:3000 && tsc -p electron -w\" \"wait-on http://localhost:3000 && tsc -p electron && electron .\"",
}
in package.json
yhirose commented
@littleclown, thanks for the feedback. Could you send a pull request for the change?