You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Web][3.4.0] reanimatedWrapper crashes Vite dev server and increases bundle size in production #4619
PROD - Reanimated gets duplicated in the bundle, resulting in additional 190 KB minified
Metro is unaffected because it honours Reanimated's react-native field and compiles src/.
Steps to reproduce
Set up a React Native Web app built with Vite 8, with react-native-gesture-handler@3.4.0.
Use any GestureDetector so reanimatedWrapper is included.
Start the Vite dev server and open the app: it fails with the validate-worklets-version.js ... does not provide an export named 'default' error above.
Run vite build and search the output bundle: AnimatedComponent's lifecycle methods (for example this._NativeEventsManager)==null||ae.attachEvents()) and the _hasWarnedAboutLayoutAnimationStyleOverwriting field show up twice, once from lib/module and once from src.
Some of the required information in this issue is missing, incomplete or invalid. Could you take another look at the template and make sure each of these is filled in with something we can act on?
Description - what happens, and what you expected to happen instead
Steps to reproduce - steps somebody else can follow, not just numbering
Gesture Handler version - the exact version from your package.json or lockfile
React Native version - the exact version from your package.json or lockfile
Versions of related libraries you mention (Reanimated, Worklets, Screens, Expo) - the versions actually installed
Platforms - the platforms you actually see the bug on
Once the issue is updated we will take another look. Thanks!
Activity
github-actions commentedon Oct 20, 2026
Hey @gigobyte! 👋
Some of the required information in this issue is missing, incomplete or invalid. Could you take another look at the template and make sure each of these is filled in with something we can act on?
package.jsonor lockfilepackage.jsonor lockfileOnce the issue is updated we will take another look. Thanks!
github-actions commentedon Oct 20, 2026
Hey @gigobyte! 👋
The issue doesn't seem to contain a minimal reproduction.
Could you provide a snack, a gist or a link to a GitHub repository that reproduces the problem?
m-bert commentedon Oct 20, 2026
Hi @gigobyte! Thank you for reporting this issue! I've prepared #4620 - could you confirm that it fixes the issue?
gigobyte commentedon Oct 22, 2026
I can confirm that it resolves the issue, yes.
Keep Reanimated deep imports out of web bundles (#4620)