Cannot read properties of undefined (reading 'constantViolations') #5025
Unanswered
johnnywang
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Since no one else has been reporting this, I imagine I'm doing something wrong with my setup, so asking as a question instead of opening up as an issue. Our RN app (bare/ejected Expo 47 workflow, RN 0.70.5) works fine on Reanimated 2.x.x. I'm trying to upgrade a bunch of packages in preparation for an Expo 49 + RN 0.71 upgrade though, and the moment I upgrade Reanimated to 3.x.x, I start running into this error when running tests, or when running the app itself:
The only reference I see online is about Babel versions being wrong, but looking at the peer dependencies for Reanimated, as well as the setup instructions, I seem to be in sync. Some of the relevant parts of my setup below:
package.json
(subset of my packages)jest.config.js
babel.config.js
setupTests.ts
Contains a bunch of stuff, but of relevance:
A lot of the errors will go away if I stop including the
setUpTests
call, but not all of them, and that doesn't resolve the runtime issues itselfBeta Was this translation helpful? Give feedback.
All reactions