react-native-reanimated: Cannot find module 'react-native-reanimated/plugin' from project folder
Description
I am using this package as a dependency of react-native-draggable-flatlist. When I did npm install react-native-reanimated
v1.13.2
got installed automatically. And when I ran the app got following error.
Cannot find module ‘react-native-reanimated/plugin’ from project folder
below is babel.config.js
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [ 'react-native-reanimated/plugin']
};
Screenshots
Steps To Reproduce
Just do npm install react-native-reanimated
. Then Run the app.
Expected behavior
reanimated shouldn’t give any errors
Actual behavior
Showing above mentioned error when app is ran
Snack or minimal code example
Con’t provide any snack since error belongs to package installation
Package versions
- React: “16.13.1”
- React Native: “0.63.2”
- React Native Reanimated: “1.13.2”
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 13
- Comments: 21 (3 by maintainers)
You use Reanimated v1, you don’t need the plugin to get it working. Try removing it from the babel plugins and check if it resolves this issue for you.
Error: Unable to resolve module ./pluginUtils from /Users/node_modules/react-native-reanimated/src/reanimated2/index.ts:
for me it also worked with version 1.13.3 and I had to install rn-nodeify
@jakub-gonet I have deleted node_modules and installed. cleaned cache. Then Installed
reanimated v1.13.2
. Surprisingly it’s working now.Can you please confirm that Hermes engine to be enabled or not
reanimated V1
?Issue validator
The issue is valid!