Skip to content
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.

Requiring unknown module "react-transform-webpack-hmr" #4

Closed
adampash opened this issue Sep 15, 2015 · 4 comments
Closed

Requiring unknown module "react-transform-webpack-hmr" #4

adampash opened this issue Sep 15, 2015 · 4 comments

Comments

@adampash
Copy link

Hey, first, thanks for all of your great projects! They've saved me so much time, and I've learned a ton from them.

So, onto the issue:

I've been transitioning various projects from react-hot-loader to react-transform-webpack-hmr, and it's gone without a hitch on React web projects. I've been trying it out on my react-native projects, where I'm running react-native-webpack-server. I followed your basic instructions in this issue, along with the boilerplate setup, but for some strange reason, I always get this error in the iOS simulator:

Requiring unknown module "react-transform-webpack-hmr"

http://localhost:8080/index.ios.bundle:23569 ...

screenshot_9_15_15__1_58_pm

I realize that I'm very likely barking up the wrong tree (and I apologize if that's the case), but I've tried working around this from every angle I can think of, so I wanted to see if this is something you've seen before and whether there's a fix I'm not aware of.

Again, thank you for all your work!

Update: I should note the obvious: I do have the module installed, and I've removed and re-installed it several times, and likewise restarted the packager, just to sanity check myself.

@gaearon
Copy link
Owner

gaearon commented Sep 15, 2015

Can you please provide a project reproducing this so I could take a look? Thanks!

@adampash
Copy link
Author

Hey Dan,

Here's the boilerplate:

https://github.com/adampash/react-native-redux-starter/tree/react-transform-webpack-hmr

The readme should give you a quick copy/paste for bootstrapping everything. I'm also wondering if something is going wrong w/my node installation, but I've tried different versions of iojs with nvm and I'm getting the same results. Thanks for any help!

@adampash
Copy link
Author

I haven't updated the code in my project, but I tested your update in this pull request and that's working for me, so I'm closing. Thanks again for looking into this! The .babelrc caching had really destroyed my troubleshooting brain.

@gaearon
Copy link
Owner

gaearon commented Sep 17, 2015

Thanks for getting me to look into it! Yes, the issue was likely due to mjohnston/react-native-webpack-server#63 and facebook/react-native#1924 (comment).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants