Error: undefined Unable to resolve module react-spring/native
See original GitHub issue- As soon as I installed the package on my
react-native
application, I started getting this issue, which is in the screenshot. - Tried doing these to remove the error:
rm -rf node_modules && rm -rf package-lock.json
cd ios && rm -rf Pods && rm -rf Podfile.lock && cd ..
npm install
cd ios && pod install
react-native start --reset-cache [in one terminal]
npm run ios [in another terminal]
I also, visited to see if I can install the missing package from this link @react-spring/native, but the docs says:
Note: This package is not compiled before being published, because Metro handles that for us, which means we get proper sourcemap support!
Did not work out for me. Still the same issue. My app is breaking. Any help would be highly appreciated.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top 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 >react-spring react native problem - Expo Snack
Error : Unable to resolve module 'react-spring/native.js' at Object.eval ... at eval (<anonymous>) at [snack internals] at Module.o ([snack internals] at ...
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 >undefined Unable to resolve module react-native-google-signin
ERROR [ Error : undefined Unable to resolve module react-native-google-signinPlease do like share and comment if you like the video please do ...
Read more >Troubleshooting | React Navigation
You can install the latest versions by installing the packages again (e.g. npm install package-name ). I'm getting an error "Unable to resolve...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Luca8991 the reasons is that you use the 9-th version of the react-spring. It doesn’t contain native part. Please, just downgrade it to “8.0.27” as in the sample project: https://github.com/3DJakob/react-native-tinder-card-demo/blob/master/package.json
It helped me.
Hey sorry for the late reply! The native version depends on react-spring however not the react version. Because of this, it would be a bad idea to include it in our module taking up unnecessary space for React users. Try running
npm install react-spring
and it should hopefully work.