FormidableLabs/spectacle-boilerplate

Won't run. SyntaxError Unexpected token

Opened this issue · 4 comments

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

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.

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

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

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.