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((
6 |
| ^
7 |
8 |
9 | ), document.getElementById('root'));
BabelLoaderError: SyntaxError: Unexpected token (6:1)
4 |
5 | React.render((
6 |
| ^
7 |
8 |
9 | ), document.getElementById('root'));
at transpile (/home/jfr/docker/notica.dk/node_modules/babel-loader/lib/index.js:61:13)
at Object.module.exports (/home/jfr/docker/notica.dk/node_modules/babel-loader/lib/index.js:163:20)
@ 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.
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.