Giter Club home page Giter Club logo

Comments (8)

dawsonbooth avatar dawsonbooth commented on September 25, 2024

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.

GollyJer avatar GollyJer commented on September 25, 2024

+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.

GollyJer avatar GollyJer commented on September 25, 2024

and we use Yarn

from expo.

GollyJer avatar GollyJer commented on September 25, 2024

This is how it manifests in our project.
image

from expo.

GollyJer avatar GollyJer commented on September 25, 2024

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.

dawsonbooth avatar dawsonbooth commented on September 25, 2024

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.

Osomasi avatar Osomasi commented on September 25, 2024

@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.

marklawlor avatar marklawlor commented on September 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.