The Frontend doesn't work on Windows 10
See original GitHub issueHello,
I just followed the workflow given here and here to install substrate onto my (Windows 10)-Machine.
The Node - after quite some attempts - could compile and run successfully. So I followed the tutorial further which brought me here in order to install the substrate frontend template.
I could however not make it run, since yarn run start
will fail with
yarn run start
yarn run v1.22.0
$ PORT=8000 react-scripts start
Der Befehl "PORT" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
(complaining trying to run PORT which is not a command). After a bit googling, I found that it will basically run that line:
"start": "PORT=8000 react-scripts start"
which according to the Yarn-Docs just runs the PORT command (which is not available).
So I removed that part (in the hopes its meant as some parameter and has a reasonable default value), which actually made the server start. However, when attempting to access the web ui, it spills me an error:
Error: Child compilation failed:
Module build failed (from ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js):
Error: [BABEL] C:\Users\xyz\dev\substrate_frontend\node_modules\webpack\buildin\global.js: Cannot find module '@ba bel/helper-call-delegate'
Require stack:
- C:\Users\Richard\dev\substrate_frontend\node_modules\babel-preset-react-app\node_modules\@babel\plugin-transform-par ameters\lib\params.js
which made me finally report here: I guess thats not suppose to happen.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
@danforbes @Mereep, adding the PORT variable to the
.env
file at root:and modifying the
start
command inpackage.json
to read:was enough to make it work under windows.
yes
I used
yarn install
, it installed successfully. Error happens after start. However, after usingnpm install
instead, I could start it afterwardscmd