React-native-paper: Error: Unable to resolve module ./components/Checkbox from node_modules\react-native-paper\lib\module\index.js

Created on 2 May 2020  路  12Comments  路  Source: callstack/react-native-paper

Environment

react-native: 0.62.2
react-native-paper: 3.9.0

Description

Error: Unable to resolve module ./components/Checkbox from node_modules\react-native-paper\lib\module\index.js

Error after updating from 3.8.0 to 3.9.0

Note: I've tried, cleared the cache and deleted node_modules and reinstalled.

image

Checkbox Stale bug

Most helpful comment

Somebody are resolve this problem ?

yes with this #1882

npx react-native start --reset-cache

All 12 comments

got same error

Same here. The app is built using Expo.

Edit:
I managed to solve the issue by removing the node_modules/ folder and reinstalling the npm packages with npm install.
@hugosbg @nashsaint

First i get rid of node modules rm -rf node_modules, then package-lock rm package-lock.json but nothing happens.

Using the command expo upgrade, which does delete node_modules and package-lock, then reinstall packages automatically suddenly things back to work on.
Ensure to have your node_modules in place before runing this command. It needs to find the expo package at node_modules to proceed in updating.

You'll notice whats happening reading the message log after running expo upgrade.

NOT A SOLUTION TO THE PROBLEM JUST AN FYI
I reverted back to version 3.8.0 to fix this issue for now, as this started showing up after I updated it to 3.9.0. I will keep following this thread for the real solution.

NOT A SOLUTION TO THE PROBLEM JUST AN FYI
I reverted back to version 3.8.0 to fix this issue for now, as this started showing up after I updated it to 3.9.0. I will keep following this thread for the real solution.

Just upgrade expo. There is an incompatibility with react-native-paper and an other dozen of packages.

I am gettig this error in create react native not in expo today. What is the solution to fix. Anyone?

+1

NOT A SOLUTION TO THE PROBLEM JUST AN FYI
I reverted back to version 3.8.0 to fix this issue for now, as this started showing up after I updated it to 3.9.0. I will keep following this thread for the real solution.

How did you revert back? I'm too tried everything possible and still nothing...
My exact error is - Unable to resolve "react-native-paper/lib/typescript/src/components/MaterialCommunityIcon"

+1

Somebody are resolve this problem ?

Somebody are resolve this problem ?

yes with this #1882

npx react-native start --reset-cache

Hello 馃憢, this issue has been open for more than 2 months with no activity on it. If the issue is still present in the latest version, please leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution on workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix the issue.

Was this page helpful?
4 / 5 - 1 ratings