gaearon / react-transform-boilerplate

A new Webpack boilerplate with hot reloading React components, and error handling on module and component level.
Creative Commons Zero v1.0 Universal
3.36k stars 430 forks source link

Error when using Webpack 2 and es2015-webpack preset #124

Closed vladshcherbin closed 8 years ago

vladshcherbin commented 8 years ago

When using webpack 2 and the suggested es2015-webpack preset, updating a component gives an error:

screen shot 2016-03-16 at 5 14 35 am

If we use webpack 2 and es2015 preset - there is no error.

So, do we need to use es2015-webpack preset in prod and es2015 in dev?

hanfeisun commented 8 years ago

+1, it will be great if webpack2 is supported

hanfeisun commented 8 years ago

It seems that 2.10.0 webpack-hot-middleware already supports this:

https://github.com/glenjamin/webpack-hot-middleware/issues/70

gaearon commented 8 years ago

Can I ask you to try https://github.com/gaearon/react-hot-boilerplate/pull/61 with Webpack 2 instead? This project is going to be deprecated in favor of React Hot Loader 3 as described there.

vladshcherbin commented 8 years ago

@gaearon sure, I was trying to find a good boilerplate for easy package creation. Will try your new work. I like your packages and what you do! Thank you a lot. ❤️