Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Won't run. SyntaxError Unexpected token #40

Open
agarrharr opened this issue Jul 12, 2017 · 4 comments
Open

Won't run. SyntaxError Unexpected token #40

agarrharr opened this issue Jul 12, 2017 · 4 comments

Comments

@agarrharr
Copy link

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
@agarrharr agarrharr changed the title Won't run. Error. Unexpected token Won't run. SyntaxError Unexpected token Jul 12, 2017
@jebeck
Copy link

jebeck commented Jul 22, 2017

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
Copy link

mendeza commented Jul 23, 2017

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
Copy link
Author

agarrharr commented Jul 24, 2017

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
Copy link

basilfx commented Jul 31, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants