peter-mouland / react-lego

React-lego : incrementally add more cool stuff to your react app
http://react-lego.herokuapp.com/
MIT License
414 stars 36 forks source link

Solved: Getting syntax error on start:dev #8

Closed gumatt closed 7 years ago

gumatt commented 7 years ago

I am new to webpack, and to github, so if this is not the right area to ask this question then please point me in the right direction.

I must have some sort of config issue on my side with babel. I cloned the react-hot-loader branch, and when I run the start:dev script, npm gets to the build:dev script I get a Syntax error:

/react-lego/src/config/webpack.config.dev.js:4
const { SRC } = require('./paths');
      ^ 

Any idea what I'm doing wrong?

gumatt commented 7 years ago

Fixed: The problem was an old version of node and npm. Upgraded to node 6 and it works like a champ.

This boilerplate is insanely helpful. Thanks for putting it together.

gumatt commented 7 years ago

Fixed: The problem was an old version of node and npm. Upgraded to node 6 and it works like a champ.