After getting the new update for the package, we are getting the following errors on our project:

No idea about steps to reproduce, but our project works fine with 1.9.0
It works just as before.
Throws an error seen above.
Same there!
It may be connected with new build system, will test that shortly!
Thanks for letting us know
@dsemennyuk, @richardszanyi, could you guys run
yarn remove react-native-reanimatedrm -rf node_modules/react-native-reanimatedyarn add [email protected]And post here content of src/derived/index.js file? (less node_modules/react-native-reanimated/src/derived/index.js)?
I cannot use yarn on my environment, we have not yet used it, so I would not fiddle with it now.
Nontheless, the requested file's content is:
export { default as acc } from './acc';
export { default as color } from './color';
export { default as diff } from './diff';
export { default as diffClamp } from './diffClamp';
export { default as interpolate, Extrapolate } from './interpolate';
export { default as interpolateColors } from './interpolateColors';
export { default as onChange } from './onChange';
export { default as useCode } from './useCode';
You can use npm as well, I just want to make sure it isn't connected to any stale cache.
In 1.10.0 we moved abs from js to native side, so metro doesn't recognize it. Try running it with --reset-cache switch
@jakub-gonet I think in my case watchman was the culprit as even after --reset-cache the issue was still there.
watchman watch-del-all
npm run start -- --reset-cache
If it fails, the overkill way:
rm -rf node_modules && npm install
(cd android && ./gradlew clean)
(cd ios && pod install)
watchman watch-del-all
npm run start -- --reset-cache
I tried to reproduce it on the fresh project and it doesn't happen, so I'm assuming this is related to the caches. If you still experience this issue after resetting caches like @kamui545 shown, please reply.
I had the same problem, but doing:
Solved the problem.
@jakub-gonet I think in my case watchman was the culprit as even after
--reset-cachethe issue was still there.watchman watch-del-all npm run start -- --reset-cacheIf it fails, the overkill way:
rm -rf node_modules && npm install (cd android && ./gradlew clean) (cd ios && pod install) watchman watch-del-all npm run start -- --reset-cache
I tried running all of those commands, but nothing seems to work. I'm still getting this error, only on android though since iOS works perfectly fine. Anyone knows what else this could possibly be?
Any update? As @mrousavy I tried everything suggested and nothing helped
Edit: Deleting the local repo and reset it did it for me
Most helpful comment
@jakub-gonet I think in my case watchman was the culprit as even after
--reset-cachethe issue was still there.If it fails, the overkill way: