gaearon / react-transform-hmr

A React Transform that enables hot reloading React classes using Hot Module Replacement API
772 stars 57 forks source link

locals[0] does not appear to be a `module` object with Hot Module replacement API enabled #5

Closed bkniffler closed 9 years ago

bkniffler commented 9 years ago

Hi, I've installed 1.0.0, I've copy&pasted .babelrc from the examples and I'm using babel-loader with webpack as adviced, all in my dev environment, but I'm getting said error as soon as I'm running the whole thing. Whereas, the previous version worked.

Is there anything not yet documented I'm missing?

guerjon commented 7 years ago

I had this same problem in react-native, i can't erase the .babelrc because use the "presets": ["react-native"], and his configuration, this only happend when i desactive JS Dev Mode in Dev Settings, i don't want change node_modules carpets, any idea?

guyca commented 7 years ago

fwiw - I had this issue in react-native project, I disabled JS Dev Mode in debug preferences which caused this 👍

yash2code commented 7 years ago

@guyca where cani find debug prefrernces?

xerotolerant commented 7 years ago

@yash2code It is at the top of the Dev settings menu when you shake the device.