-
Notifications
You must be signed in to change notification settings - Fork 22
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
BabelLoader unexpected token #36
Comments
This is strange. I wonder if it's because of different yarn / node versions? I wrote it on yarn v1.17.3 and node v10.24.1. Can you try those versions? |
Thanks for the reply. Unfortunately it does not help. npm version yarn install && yarn start --host 0.0.0.0 ERROR in ./src/index.js 4 |
BabelLoaderError: SyntaxError: Unexpected token (6:1) 4 |
@ multi main |
It works perfectly first try for me:
This is strange. Can you do |
Try checking it out to a different directory and following the exact steps again. |
Using yarn on Ubuntu, with the supplied package.json, there seems to be a problem with the setup
jfr@dockerhost:~/docker/notica.dk$ yarn start --host 0.0.0.0
yarn run v1.22.17
$ yarn run build && node server.js --host 0.0.0.0
$ webpack --config ./webpack.production.config.js --profile --display-error-details --no-color
Hash: 0c34ed32dc97cdb5d755
Version: webpack 1.15.0
Time: 593ms
[0] multi main 28 bytes {0} [built] [1 error]
factory:0ms building:1ms = 1ms
+ 1 hidden modules
ERROR in ./src/index.js
Module build failed: SyntaxError: Unexpected token (6:1)
4 |
5 | React.render((
BabelLoaderError: SyntaxError: Unexpected token (6:1)
4 |
5 | React.render((
@ multi main
==> Listening on port 3000. Open up http://0.0.0.0:3000/ in your browser.
Any ideas ? The page is blank, when opening it.
The text was updated successfully, but these errors were encountered: