React-native-reanimated: Unable to resolve module '..utils'

Created on 20 Jun 2019  路  6Comments  路  Source: software-mansion/react-native-reanimated

Hello, I've been experimenting with this package and after I finally got the react-native-gesture-handler to cooperate, this package turned up with this error

Currently using this version of the package
"react-native-reanimated": "^1.1.0",

It seems like a specific file related to the reanimated package is missing a reference or failed to install it onto my system
image

What I'm trying to implement into my project is react-native-tab-view, however I can't seem to identify the problem here so I would love some help

EDIT: I went and looked in my node_modules folder and the folder is there, which means the installation was not a problem

I guess that this line of code would be needed in the AnimatedClock file somewhere
import utils from '../utils'

Although I'm not using the AnimatedClock anywhere in my project I'm confused as to why this error happens

Most helpful comment

you may need to reset metro cache, try this command:

npm start -- --reset-cache

All 6 comments

Same thing for me, tried using react navigation createAnimatedSwitchNavigator from https://reactnavigation.org/docs/en/animated-switch-navigator.html just copy paste + npm i and get the same error, I guess this AnimatedClock is called by the Transition but what can I do?

getting the same error

you may need to reset metro cache, try this command:

npm start -- --reset-cache

Last edit : Actually worked perfectly with a expo r -c to start and clean cache (+rereading my dumb mistakes in other parts of the code)

Just two things to note:
1) After resetting cache I now need to import React in this file or i get an error(but works great then).
2) When transition occurs between views I get weird behaviors (maybe because of dev not build app) the page slides down correctly but the content of the page disappears at the start of the transition (eg just background moving down)

This is works for me Thanks!! @GNPhoque

expo r -c

Hey @Lakeyour,
thanks for submitting this issue and I hope solutions provided by @kagawagao and @GNPhoque resolves your problem 馃檪

I'm closing it, but if you have further questions feel free to reopen

Was this page helpful?
0 / 5 - 0 ratings