Module not found: Can't resolve 'react-dom/unstable-native-dependencies'
Asked Answered
L

1

8

I am writing applications with React Native. I am using Expo.

My React and react-dom versions are 17.0.0 but I get an error like this on the expo web page. How can I solve the problem?

"react": "17.0.0", "react-dom": "17.0.0", "react-native": "https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz",

It is showing as follow: enter image description here

Liverwort answered 9/1, 2021 at 14:16 Comment(2)
Take a look at package.json, there's react-dom or notConyers
There is react-dom. I have now downgraded the version to 16.8.0. The warning in Console is like the image. prnt.sc/wjquwsWhoopee
G
0

According to your console warning, instead of

'componentWillMount' 

you should give

'componentDidMount'
Gambia answered 13/1, 2022 at 6:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.