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.

Error: Unable to resolve module `@react-native-community/toolbar-android`

See original GitHub issue

After upgrading to the new version 6.7.0, bundling fails at:

error: Error: Unable to resolve module `@react-native-community/toolbar-android` from `node_modules\react-native-vector-icons\lib\toolbar-android.js`: @react-native-community/toolbar-android could not be found within the project.   

Installing the @react-native-community/toolbar-android package solves the error, but I’m not sure if that’s the wanted behaviour. It should be mentioned in README at least.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:56
  • Comments:58 (5 by maintainers)

github_iconTop GitHub Comments

187reactions
brunods-devcommented, Jul 3, 2020

For me: I remove the ‘^’ from : -“react-native-vector-icons”: “^6.6.0” -> “react-native-vector-icons”: “6.6.0” rm -rf node_modules npm install

74reactions
mrousavycommented, Jul 7, 2020

You’re getting those errors because the toolbar module is still in metro’s cache.

To fix this, run:

rm -rf node_modules/
rm -rf package.lock.json
npm i
react-native start --reset-cache
Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to resolve module `@react-native-community/toolbar ...
error: Error: Unable to resolve module @react-native-community/toolbar-android from node_modules\react-native-vector-icons\lib\toolbar-android.
Read more >
Unable to resolve module `@react-native-community/toolbar ...
Coding example for the question Error: Unable to resolve module ... You can install the @react-native-community/toolbar-android by using the below command:
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 >
error: unable to resolve module `@react-native-community ...
error: bundling failed: error: unable to resolve module `@react-native-community/toolbar-android` from `node_modules eact-native-vector-iconslib oolbar-android.
Read more >
react-native-community/toolbar-android - npm
@react-native-community/toolbar-android. TypeScript icon, indicating that this package has built-in type declarations.
Read more >

github_iconTop Related Medium Post

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