You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot find module './init/init' after upgrade to 57.5 #22292
After upgrading to react-native 0.57.5 I began to get this error when running react-native start:
internal/modules/cjs/loader.js:589
throw err;
^
Error: Cannot find module './init/init'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:587:15)
at Function.Module._load (internal/modules/cjs/loader.js:513:25)
at Module.require (internal/modules/cjs/loader.js:643:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/Users/robertmilejczak/Documents/Projects/kalos-mobile/node_modules/react-native/local-cli/cliEntry.js:26:14)
at Module._compile (internal/modules/cjs/loader.js:707:30)
at Module._compile (/Users/robertmilejczak/Documents/Projects/kalos-mobile/node_modules/pirates/lib/index.js:83:24)
at Module._extensions..js (internal/modules/cjs/loader.js:718:10)
at Object.newLoader (/Users/robertmilejczak/Documents/Projects/kalos-mobile/node_modules/pirates/lib/index.js:88:7)
at Module.load (internal/modules/cjs/loader.js:605:32)
And if I try building in XCode I get a message that YogaEnums.h could not be found.
Reproducible Demo
Unfortunately I cannot reproduce this consistently. It happens on my local machine with each restart, and sometimes happens if I have to restart metro during testing for some reason.
The fix is easy enough, I just clear all my caches and reinstall node_modules and everything works fine so realistically it's just a delay of a few minutes.
As far as I can tell this is not happening on fresh projects so I'm guessing there was some change to some core iOS file that I did not get since I did not use react-native upgrade. Since rn-diff has not been able to keep up with the rn release schedule I can't confirm whether or not this is the case. I don't actually need assistance, and am only making this issue for posterity.
It looks like an issue with this particular install. If reinstalling stuff with e.g. yarn --check-files helps, I think it's better to close this to not pollute the issue tracker.
@thymikee I actually meant to close the issue initially, since I already have a fix in place. I'll do that now
When you say with this particular install, how do you mean? I've been using this react-native install since 0.57.1 and have been upgrading regularly, this issue has only been introduced after upgrading to 0.57.5
Activity
thymikee commentedon Nov 15, 2018
It looks like an issue with this particular install. If reinstalling stuff with e.g.
yarn --check-fileshelps, I think it's better to close this to not pollute the issue tracker.rmilejcz commentedon Nov 15, 2018
@thymikee I actually meant to close the issue initially, since I already have a fix in place. I'll do that now
When you say with this particular install, how do you mean? I've been using this react-native install since 0.57.1 and have been upgrading regularly, this issue has only been introduced after upgrading to 0.57.5