question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to resolve module "rn-host-detect"

See original GitHub issue

Describe 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
Gongregcommented, Dec 9, 2019

Can you install 5.3.0-beta.19 and make sure to use react-native start --reset-cache ?

0reactions
Gongregcommented, Dec 9, 2019

Glad to help 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found