Macil / react-hot-transform

Tweak React components in real time with Browserify.
MIT License
34 stars 0 forks source link

Parsing error with babelify #1

Closed scottcorgan closed 9 years ago

scottcorgan commented 9 years ago

Getting the following error:

Cannot read property 'match' of undefined while parsing file:

when running

watchify --extension=.jsx -vd -t [babelify --stage 0] -t react-hot-transform -p browserify-hmr -e app/assets/javascripts/index.js -o lib/assets/javascripts/bundle.js

The error goes away when I remove react-hot-transform. Any ideas?

Macil commented 9 years ago

Can you post a snippet or example project that reproduces the issue? I can't recreate the issue.

Macil commented 9 years ago

Make sure you're using the latest versions of watchify and babel. That seemed to fix a similar issue someone else had.

I'm closing this due to inactivity. Please re-open it if you still have this issue!