cloverfield-tools / universal-react-boilerplate

A simple boilerplate Node app.
MIT License
904 stars 97 forks source link

Error on build creation #106

Open riccardolorenzon opened 8 years ago

riccardolorenzon commented 8 years ago

I get this error when i run npm run build:dev.

ERROR in ./source/client/index.js
Module build failed: SyntaxError: [...]/source/client/index.js: Unexpected token (15:4)
  13 | const store = createStore(
  14 |   combineReducers({
> 15 |     ...reducers,
     |     ^
  16 |     routing: routerReducer
  17 |   }),
  18 |   // hydrating server.

Any suggestions?

ericelliott commented 8 years ago

Yep. Looks like we don't have object spread -- could be the babel config or the .eslint config (probably the first). In fact, it looks like we've fallen behind on babel & the config that goes with it. Would you like to take a crack at a PR?