react-webpack-generators / generator-react-webpack

Yeoman generator for ReactJS and Webpack
http://newtriks.com/2013/12/31/automating-react-with-yeoman-and-grunt/
MIT License
2.88k stars 355 forks source link

arrow functions & rest spread syntax is works on OS X, but comes to error on Windows #219

Closed leftjs closed 8 years ago

leftjs commented 8 years ago

there are code and babel config .babelrc:

{
  "presets": [
    "es2015",
    "react",
    "stage-0"
  ], 
  "plugins":["transform-runtime","transform-object-rest-spread"]
}

./cfg/dev.js:

config.module.loaders.push({
  test: /\.(js|jsx)$/,
  loader: 'react-hot!babel-loader',
  include: [].concat(
    config.additionalPaths,
    [ path.join(__dirname, '/../src') ]
  )
});

I think of these configs are corrent, just don't know that how windows run it and why it comes to errors, there is my screenshot: error please tell me how to fix it, thanks

leftjs commented 8 years ago

ps. I use the generator with redux, https://github.com/stylesuxx/generator-react-webpack-redux

weblogixx commented 8 years ago

Hi @leftjs,

I havent really tried the redux generator (it is maintained separately). However, arrow functions and rest/spread should work out of the box, even with the current generator. I am also using it in base and alt.js with no changes in the config. Maybe @stylesuxx is able to help here?

weblogixx commented 8 years ago

@leftjs: Closing this as it seems to have to do with a foreign project and there are no news for one month. Please feel open to report the bug on the redux version of the generator (or reopen an issue if it seems like this generator is the error source).