-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Reanimated babel error after migrating to Expo Router #29038
Comments
With some more exploration I was able to find that other instances of using I believe this is an issue caused by Expo Router and not by the other libraries/bun since it didn't occur until I migrated to Expo Router from the old webpack setup. |
+1 |
and we use Yarn |
Turns out the issue on my end was a babel plugin Might be worth checking the plugins in your |
Ah, glad you could get it working. The only plugin I'm using (as well as the minimal reproducible example) is |
@dawsonbooth I have 'expo-router/babel', and I still get iOS Bundling failed 48ms node_modules/expo-router/entry.js (1 module) |
Bun appears to be providing incorrect dependencies. Removing your lock file and using
Expo has reported similar issues to the bun team recently (oven-sh/bun#8406). I'm not sure if this is the same issue or another issue. In the mean time, you can lock the version of |
Minimal reproducible example
https://github.com/dawsonbooth/expo-router-babel-reanimated-crash
Which package manager are you using? (Yarn is recommended)
bun
If the issue is web-related, please select the bundler (
web.bundler
in theapp.json
)None
Summary
Getting this error when loading the app:
/node_modules/react-native-gesture-handler/src/handlers/gestures/hoverGesture.ts: [Reanimated] Babel plugin exception: Error: [BABEL]: You appear to be using a native ECMAScript module plugin, which is only supported when running Babel asynchronously. (While processing: /node_modules/@babel/plugin-transform-shorthand-properties/lib/index.js)
Environment
expo-env-info 1.2.0 environment info:
System:
OS: macOS 14.2.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.3.1 - ~/.asdf/installs/nodejs/20.3.1/bin/node
Yarn: 1.22.19 - ~/.asdf/installs/nodejs/20.3.1/bin/yarn
npm: 9.6.7 - ~/.asdf/plugins/nodejs/shims/npm
SDKs:
iOS SDK:
Platforms: DriverKit 23.2, iOS 17.2, macOS 14.2, tvOS 17.2, visionOS 1.0, watchOS 10.2
IDEs:
Xcode: 15.2/15C500b - /usr/bin/xcodebuild
npmPackages:
expo: ^51.0.0 => 51.0.8
expo-router: ~3.5.9 => 3.5.14
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.74.1 => 0.74.1
react-native-web: ~0.19.6 => 0.19.11
Expo Workflow: managed
The text was updated successfully, but these errors were encountered: