Unable to resolve module "rn-host-detect"
See original GitHub issueDescribe the bug After upgrading react-native from 0.59 to 0.61, in which they introduced fast refresh, there were several issues with Storybook (always loading with addon page opened, and throwing different errors on code change forcing me to reload every time I changed the code). I read that at least the addon always being shown had been resolved, and therefore wanted to update storybook, because it sucked to click and close this and that all the time.
However, after updating I have bigger problems, which forces me to downgrade again:
"Unable to resolve module `rn-host-detect` from `node_modules/@storybook/react-native/dist/preview/index.js`: rn-host-detect could not be found within the project."
To Reproduce Install storybook v5.3.0-beta.14 and run the app.
Expected behavior I would expect it to work.
System:
System:
OS: macOS 10.15.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Binaries:
Node: 10.16.0 - /usr/local/bin/node
Yarn: 1.19.2 - ~/.yarn/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
Browsers:
Chrome: 78.0.3904.108
Safari: 13.0.3
npmPackages:
@storybook/addon-storyshots: v5.3.0-beta.14 => 5.3.0-beta.14
@storybook/addons: v5.3.0-beta.14 => 5.3.0-beta.14
@storybook/react-native: v5.3.0-beta.14 => 5.3.0-beta.14
@storybook/react-native-server: v5.3.0-beta.14 => 5.3.0-beta.14
Additional context If you need any other information, please let me know 😃
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Unable to Resolve Module in React Native App - Stack Overflow
I'm getting an error in React Native saying it can't resolve a module. It's saying a certain folder doesn't exist but the path...
Read more >MongoDB Atlas App Services & Realm
Fresh Setup: Realm React Native Error: Unable to resolve module `./subscription` from `node_modules/realm/lib/browser/index.js`.
Read more >Error: Unable to resolve module `util` – Split Help Center
Running bundle using React Native and Javascript SDK causes an error. Bundling failed: Error: Unable to resolve module `util`.
Read more >React Native, Typescript and VS Code: Unable to resolve ...
The problem with resolving modules turned out to be related to VS Code's typescript project helper.
Read more >unable to resolve module react native - You.com | The search ...
0" and there is no need to install the @react-native-community/toolbar-android . Open side panel. React Native Error: Unable to resolve module `.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can you install 5.3.0-beta.19 and make sure to use
react-native start --reset-cache
?Glad to help 😃