Unable to load react dom & Unable to resolve module ‘module://fbjs/lib/invariant.js’ error

Hi,

when i run my app on andriod i get [Unable to resolve module ‘module://fbjs/lib/invariant.js’ error]. i also added in my dependcise but its not reading and when i run it on IOS it gives me error Unable to resolve module ‘module://react-dom.js’.

even i tried to add react dom different version but its not accpeting and giving me error
The package “react-dom” can be imported without adding to “dependencies”.

Kindly help while app running successfully on web

“dependencies”: {
“antd”: “4.0.2”,
“fbjs”: “^1.0.0”,
“redux”: “latest”,
“expo-font”: “8.0.0”,
“native-base”: “2.13.8”,
“react-redux”: “latest”,
“redux-thunk”: “latest”,
“react-navigation”: “latest”,
“react-router-dom”: “latest”,
“react-native-maps”: “0.26.1”,
“react-native-paper”: “3.6.0”,
“react-native-screens”: “2.0.0-alpha.12”,
“react-native-elements”: “1.0.0”,
“react-navigation-stack”: “2.2.3”,
@react-navigation/stack”: “5.0.0”,
“react-native-appearance”: “0.3.1”,
“react-native-reanimated”: “1.4.0”,
“react-navigation-drawer”: “2.4.2”,
“apsl-react-native-button”: “latest”,
“react-native-maps-google”: “1.1.4”,
“react-native-shadow-cards”: “latest”,
“toggle-switch-react-native”: “latest”,
“react-native-safe-area-context”: “0.6.0”,
“accordion-collapse-react-native”: “latest”,
@react-native-community/masked-view”: “0.1.5”
}

Kindly help

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.