Won't run. SyntaxError Unexpected token
agarrharr opened this issue · 4 comments
agarrharr commented
I downloaded it, ran npm i
, and npm start
. This is the output:
ERROR in ./index.js
Module build failed: SyntaxError: Unexpected token (6:7)
4 | import Presentation from "./presentation";
5 |
> 6 | render(<Presentation/>, document.getElementById("root"));
| ^
7 |
@ multi webpack-hot-middleware/client babel-polyfill ./index
jebeck commented
What versions of node and npm are you using @agarrharr? I just downloaded fresh and built with no problems - node v8.1.3, npm v5.1.0 for me.
mendeza commented
IME (OSX 10.10.5) dies with same error under:
$ node -v; npm -v
v8.2.1
5.3.0
Also IME (Mint Linux 18) works just fine with:
$ node -v; npm -v
v6.9.4
3.10.10
agarrharr commented
Actually, I don't know what changed, but it works now. I'm on Ubuntu 16.04.2 LTS.
$ node -v; npm -v
v6.11.1
5.3.0
basilfx commented
Had the same problem after I copied all the files to a different folder. Turned out I forgot to copy all .*
files, such as .babelrc
.