Closed Zweird-958 closed 5 months ago
Hi @Zweird-958, as per similar issues, it seems like an outdated @babel/preset-typescript
and/or alike dependencies. Usually what worked for people was removing the package manager cache, removing node_modules
and package-lock.json
.
In your project root:
npm cache clean --force && rm -fr node_modules package.lock.json && npm install
npm cache clean --force && rm -fr node_modules package.lock.json && npm install
I don't know why with this comman it's works. Thanks !
Should I need do npm i -D @babel/preset-typescript
?
No, it should be shipped already with some other dependencies, you can check it with npm why @babel/preset-typescript
.
This happens when you weren't updating your locked dependencies for a long time. Try to do it from time to time with npm update
.
No, it should be shipped already with some other dependencies, you can check it with
npm why @babel/preset-typescript
.This happens when you weren't updating your locked dependencies for a long time. Try to do it from time to time with
npm update
.
Okay thank you so much 🙏
I'm having a similar issue. yarn why @babel/preset-typescript
comes up empty from the root and I've run yarn upgrade
with no luck. Any help with debugging would be greatly appreciated. I'm also on RN 73 and reanimated 3.6.3 after upgrading from Expo SDK 49 -> 50.
I'm getting the same error except without the with constructor "Node"
part
I'm having a similar issue.
yarn why @babel/preset-typescript
comes up empty from the root and I've runyarn upgrade
with no luck. Any help with debugging would be greatly appreciated. I'm also on RN 73 and reanimated 3.6.3 after upgrading from Expo SDK 49 -> 50.I'm getting the same error except without the
with constructor "Node"
part
Doesn't have this issue by using pnpm
.
Description
I have this error everytime I try start the mobile :
I tried to follow this but it doesn't resolve the problem.
package.json
:babel.config.js
:Other information
I'm using a monorepo with
npm
. It worked 1 month ago. Unfortunately I can't share the repo but I shared a similar config.Steps to reproduce
Just run
npx expo start
Snack or a link to a repository
https://github.com/Zweird-958/my-wishlist/tree/main/apps/mobile
Reanimated version
3.6.2
React Native version
0.73.6
Platforms
iOS
JavaScript runtime
None
Workflow
Expo Go
Architecture
None
Build type
Debug app & dev bundle
Device
iOS simulator
Device model
iPhone 14 Pro Max (iOS 16.0)
Acknowledgements
Yes