-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Web]ReferenceError: _frameTimestamp is not defined #3355
Comments
Hey! 👋 The issue doesn't seem to contain a minimal reproduction. Could you provide a snippet of code, a snack or a link to a GitHub repository that reproduces the problem? |
I'm also facing this issue, on 2.9.1 on web. For example, in this repo (not minimal): https://github.com/tamagui/starters/tree/main/next-expo-solito Has anyone found a solution? |
which file to be exact? |
had the same issue with V2.9 and had to downgrade to 2.8. |
## Description The PR with tree shaking moved global objects initialization for web to another file and then imported it into the `index` file (`import './reanimated2/js-reanimated/global';`). However, the Webpack can lazy import modules, but we don't have any call to this module, so global objects were never initialized. Fixes #3355
Having the same issue while using Next.js any updates on this? |
@WillenOLeal I fixed it, but this hasn't been released yet. I want to release the new version this week. |
Hey @piaskowyk. Can we get new version released please ? |
Hey! 👋 The issue doesn't seem to contain a minimal reproduction. Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem? |
Hmm I'm on |
The PR with tree shaking moved global objects initialization for web to another file and then imported it into the `index` file (`import './reanimated2/js-reanimated/global';`). However, the Webpack can lazy import modules, but we don't have any call to this module, so global objects were never initialized. Fixes #3355
I've been experiencing this recently too. My use-case was with Moti (on Expo SDK46) presence animation. Version 2.8.0 and 2.9.x versions were all experiencing this issue. I've found that this issue seems to only happen in the built bundle, and not when running local dev (e.g. via (Sorry for cross-promoting, but switching to https://legendapp.com/dev/motion/animate-presence/ on web solves my specific issue - might be useful for others, though this doesn't have the performance benefits of reanimated) |
I bumped into the issue as well on the latest 3.0.0-rc2. Is there a temporary solution for it? |
Add window._frameTimestamp = null on top of the component file |
Stick the following at the top of
|
still not fixed on 2.11.0 |
Bump |
1 similar comment
Bump |
Today on 2.12.0 with #3418 merged the problem is still present after building the application with Expo. Temp fix of @jesse-savary works:
|
We're still having this issue |
Still having this issue, looks like it went away after upgrading to 3.x.x |
I get error |
You need to let TS know that process exists. Create a file named global.d.ts and add the following to it:
|
Thanks for the quick reply! I've tried this and I still get this error in the console:
for environment context I am using expo if that makes a difference |
@prateem use this instead:
|
## Description The PR with tree shaking moved global objects initialization for web to another file and then imported it into the `index` file (`import './reanimated2/js-reanimated/global';`). However, the Webpack can lazy import modules, but we don't have any call to this module, so global objects were never initialized. Fixes software-mansion#3355
- Note: There's a bug with the Reanimiated lib; applying fix found at software-mansion/react-native-reanimated#3355 (comment)
What solved this for me is this, after tearing a few hairs for half a day: |
Clean your cache use this command in your project directory->npx react-native clean cache. It should work |
me too :) |
Description
Get this error when upgrading
react-native-reanimated
tov2.9.0+
on the web (v2.8.0
works), it works fine on iOS and Android.Expected behavior
Works on the web.
Actual behavior & steps to reproduce
web not working when upgrading to
v2.9.0+
.Snack or minimal code example
https://github.com/tamagui/starters/tree/main/next-expo-solito
Package versions
Affected platforms
The text was updated successfully, but these errors were encountered: