Comments (8)
With some more exploration I was able to find that other instances of using react-native-animated
trigger the error, but typically importing react-native-gesture-handler
is the earliest so it takes precedent.
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.
from expo.
+1
Glad to find someone else having this issue; because I fully thought it was on my side of the keyboard. It started for us two days ago and have been trying to figure it out since.
from expo.
and we use Yarn
from expo.
This is how it manifests in our project.
from expo.
Turns out the issue on my end was a babel plugin @legendapp/state/babel
.
Once I remove it the app starts loading again.
Might be worth checking the plugins in your babel.config.js
file @dawsonbooth
from expo.
Ah, glad you could get it working.
The only plugin I'm using (as well as the minimal reproducible example) is react-native-reanimated/plugin
which is required for the react-native-animated setup, so it can't be resolved that way for me unfortunately.
from expo.
@dawsonbooth I have
'expo-router/babel',
and I still get
iOS Bundling failed 48ms node_modules/expo-router/entry.js (1 module)
error: node_modules/expo-router/entry.js: You appear to be using a native ECMAScript module configuration file, which is only supported when running Babel asynchronously.
from expo.
Bun appears to be providing incorrect dependencies.
Removing your lock file and using npm
to install the project works fine. When I use your lockfile, the dependency tree looks like this
[email protected] /Users/mark/Github/dawsonbooth/expo-router-babel-reanimated-crash
├─┬ [email protected]
│ └─┬ [email protected]
│ └─┬ @react-native/[email protected]
│ └── @babel/[email protected]
└─┬ [email protected]
└── @babel/[email protected] invalid: "^7.0.0-0" from node_modules/react-native-reanimated
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 @babel/plugin-transform-shorthand-properties
or use a different package manager
from expo.
Related Issues (20)
- expo-video user-agent issue in Cyrillic HOT 1
- [ios] Playing an .m3u8 / streaming video URI (Expo Video / Expo AV) makes CameraView freeze on IOS + breaks AV audio recording
- Expo 51 and Expo-Camera 15.0.16: Zoom keeps defaulting to 0 even when setting HOT 1
- [Apple][Android] expo-apple-authentication: unable to build on machine HOT 21
- After upgrading from Expo SDK 49 to 50 getting error "Property setImmediate doesnt exist and the app is crashing
- [Expo Router] Unable to change the content style of a `Tabs.Screen`
- [expo-video][android] Video view showing as black while loading
- Font crash on ios after sdk 51 - Dictionary.subscript.getter (FontFamilyAliasManager.swift) HOT 1
- requestIdleCallback crashes with bridgeless mode on RN 0.75.3
- [expo-video] v1.2.6 breaks the whole Expo App on Web HOT 2
- config plugin resolution fails in libraries using react-native-builder-bob
- Deeplink not working properly on Expo Server Android emulator HOT 1
- [iOS] Crash PersistentFileLog.appendTextToFile No space left on device
- DevX Bug: Navigation resets and incorrect screen appears when moving a route file in the app folder HOT 1
- Add support language in expo-location HOT 1
- [expo-camera] [ios] Camera does not remount properly when using new architecture HOT 1
- PluginError when using plugins with parameters
- [docs] Expo ChangeLog is getting out of date.
- SDK 51 Android EAS Build Failure HOT 2
- React Native Expo Background Notification Task Works in Foreground/Background but Fails When App is Killed (CallKeep Integration) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from expo.