Comments (14)
npm ls expo-modules-core
[email protected]
└─┬ [email protected]
└── [email protected] overridden
Ah.. the issue was I had a overwrite hidden in my package.json for expo-modules-core. Not sure why/how that happened. Removed the overwrite, reinstalled and it's now working (with Expo SDK 51). Thank you.
from expo.
@thomasflorian yes we solved it upgrading to latest expo 51 and ensuring you have in your Podfile:
linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
use_frameworks! :linkage => linkage.to_sym
end
Hope that helps you!
from expo.
Same here +1
from expo.
same issue
from expo.
Hello! This is a result of one of many breaking changes introduced in 0.74. Generally, Expo SDK 50 is not meant to be used with this version of React Native. We released SDK 51 just today, which officially supports React Native 0.74 and its bridgeless mode in the new architecture. I really recommend to upgrade to this new SDK 😉
If it's not yet feasible in your project to upgrade the SDK, the workaround for this specific error would be to patch-package this line by adding noexcept
keyword, i.e.
- void invokeAsync(std::function<void()> &&func) override {
+ void invokeAsync(std::function<void()> &&func) noexcept override {
However, I can't guarantee that everything else will work properly with RN 0.74.
from expo.
I get the same error while using SDK 51 with the following package.json. So it does not seem to be resolved with the new SDK. I removed node modules and reinstalled (with bun):
"@expo/vector-icons": "^14.0.0",
"@hookform/resolvers": "^3.3.4",
"@react-navigation/native": "^6.1.7",
"@tanstack/react-query": "^5.29.2",
"axios": "^1.6.8",
"expo": "^51.0.0",
"expo-constants": "~16.0.1",
"expo-device": "~6.0.2",
"expo-image-picker": "~15.0.4",
"expo-linking": "~6.3.1",
"expo-localization": "~15.0.3",
"expo-notifications": "~0.28.1",
"expo-router": "~3.5.9",
"expo-splash-screen": "~0.27.4",
"expo-status-bar": "~1.12.1",
"expo-system-ui": "~3.0.4",
"expo-web-browser": "~13.0.3",
"i18next": "^23.7.20",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.51.3",
"react-i18next": "^14.0.1",
"react-native": "0.74.1",
"react-native-gesture-handler": "~2.16.1",
"react-native-mmkv": "^2.12.2",
"react-native-pager-view": "6.3.0",
"react-native-reanimated": "3.10.0",
"react-native-safe-area-context": "^4.8.2",
"react-native-screens": "3.31.1",
"react-native-unistyles": "^2.1.1",
"react-native-web": "~0.19.10",
"zod": "^3.22.5",
"zod-i18n-map": "^2.27.0",
"zustand": "^4.5.2"
from expo.
@JessedeJonge Could you check which version of expo-modules-core
gets installed in your project? You can do this with npm ls expo-modules-core
or yarn why expo-modules-core
.
from expo.
Same for me, issue were resolved with upgrade of SDK. Thanks
from expo.
We tried upgrading to SDK 51, but on pod install getting:
The Swift pod `ExpoModulesCore` depends upon `React-jsinspector`, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.
We do not use use_modular_headers!
globally, what is best way to solve this?
from expo.
We tried upgrading to SDK 51, but on pod install getting:
The Swift pod `ExpoModulesCore` depends upon `React-jsinspector`, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.
We do not use
use_modular_headers!
globally, what is best way to solve this?
you can try to add sth like this in your Podfile
inside your common_pods
or directly in target
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text', :modular_headers => true
from expo.
@marelix2 thanks for that, it helped setting:
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector-modern', :modular_headers => true
But I'm having problems with RCT-Folly now:
The Swift pod
ExpoModulesCore
depends uponRCT-Folly
, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may setuse_modular_headers!
globally in your Podfile, or specify:modular_headers => true
for particular dependencies.
Setting the paths don't help:
pod 'RCT-Folly', :path => '../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec', :modular_headers => true
Getting error:
There are multiple dependencies with different sources for
RCT-Folly
inPodfile
:
- RCT-Folly
- RCT-Folly (from
../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec
)- RCT-Folly/Fabric (from
../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec
)
from expo.
@aureosouza No clue what to do. Have you tried to remove Podfile.lock and Pods? It usually helps combined with update dependencies to latest.
from expo.
@marelix2 yep did hard reset on everything, but still the same:
rm -rf package-lock.json && rm -rf node_modules && npm i && rm -rf /ios/Podfile.lock && rm -rf ~/Library/Preferences/com.apple.dt.Xcode.plist && rm -rf ~/Library/Caches/CocoaPods && rm -rf /ios/Pods && rm -rf ~/Library/Developer/Xcode/DerivedData && npx pod-install --repo-update
I might open a new issue on this, but thanks anyway.
from expo.
@aureosouza facing the same issue, did you ever figure it out?
from expo.
Related Issues (20)
- "IUpdatesController.launchAssetFile should not be called in dev client" error when running detox tests HOT 1
- App quits when navigating between tabs. IOS - critical issue HOT 2
- `openDrawer` and close are missing from `useNavigation` from `expo-router`
- react-native-dotenv incompatible with expo-router
- [SDK 51] Fonts with spaces fail to load on Android HOT 1
- Expo App not building on windows system HOT 1
- [SDK 51] Project created with expo-router entry not accessable via web in monorepo HOT 2
- [SDK 51] promise.resolve(null) is throwing NullPointerException in java code HOT 2
- EAS Build variants not reflected in expo plugins HOT 2
- Unresolved reference: BuildConfig on expo-notifications 28 HOT 1
- [expo-font] Could not unregister the CGFont HOT 1
- [SDK 51][expo-router] expo-router's Head element is not working anymore HOT 1
- ReferenceError: Property 'Platform' doesn't exist, js engine: hermes HOT 1
- [expo-contacts]: Contacts.presentFormAsync breaks on Android HOT 1
- Submitting iOS app through eas submit is failing because of a fastlane pilot error HOT 2
- @expo/vector-icons doesnt work on SDK 51 HOT 2
- Location.startLocationUpdatesAsync task callback does not receive any location updates on Android HOT 2
- Cannot find native module 'ExpoVideo' HOT 2
- Expo AV `setProgressUpdateIntervalAsync()` doesn't work on Windows browser in development build
- Expo prebuild error which can not create the android and ios folder. 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.