Shopify / sprockets-commoner

Use Babel in Sprockets to compile JavaScript modules for the browser
MIT License
182 stars 22 forks source link

Issue with React v15+ #19

Closed mikesea closed 8 years ago

mikesea commented 8 years ago

Tried setting this up on a fresh Rails app using React v15.0.2 and I'm getting the following error in the browser console:

Uncaught ReferenceError: _commoner_module__node_modules$fbjs$lib$emptyFunction_js is not defined

I switched to React v0.14.8 and everything worked.

bouk commented 8 years ago

I'll take a look at this, thanks

bouk commented 8 years ago

I'm having no issues getting this working, are you sure everything is installed properly?

bouk commented 8 years ago

ah I just reproduced it nvm

bouk commented 8 years ago

Fixed in 0.2.6, you might have to rm -rf tmp/cache in your app to make it work. Let me know if it still fails