You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did you reproduce this issue in a development build?
Yes
Summary
As the title explains, I see an error when building and running this minimal expo example:
Metro error: Unable to resolve module u/unimodules/core from /Users/drew/code/navigation-router-example/node_modules/expo-splash-screen/build/SplashScreen.js: u/unimodules/core could not be found within the project or in these directories: node_modules/expo-splash-screen/node_modules node_modules
1 | import { UnavailabilityError } from '@unimodules/core'; | ^ 2 | import ExpoSplashScreen from './ExpoSplashScreen'; 3 | /** 4 | * Makes the native splash screen stay visible until SplashScreen.hideAsync() is called.
Call Stack requireFileContentsWithMetro (node_modules/@expo/cli/src/start/server/getStaticRenderFunctions.ts:191:13) processTicksAndRejections (node:internal/process/task_queues) Object.getStaticRenderFunctions (node_modules/@expo/cli/src/start/server/getStaticRenderFunctions.ts:213:45) bundleStaticHtml (node_modules/@expo/cli/src/start/server/metro/MetroBundlerDevServer.ts:334:36) MetroBundlerDevServer.getStaticPageAsync (node_modules/@expo/cli/src/start/server/metro/MetroBundlerDevServer.ts:351:52) Unable to resolve "@unimodules/core" from "node_modules/expo-splash-screen/build/SplashScreen.js" λ Bundling failed 6882ms (node_modules/expo-router/node/render.js) Unable to resolve "@unimodules/core" from "node_modules/expo-splash-screen/build/SplashScreen.js" Web Bundling failed 1601ms (node_modules/expo-router/entry.js) Unable to resolve "@unimodules/core" from "node_modules/expo-splash-screen/build/SplashScreen.js" Web Bundling failed 6886ms (node_modules/expo-router/entry.js) Unable to resolve "@unimodules/core" from "node_modules/expo-splash-screen/build/SplashScreen.js"
Environment
This is running on my laptop. I got another friend to reproduce the error on his machine with the same repo.
Expo Doctor Diagnostics
$ npx expo-doctor@latest
Need to install the following packages:
expo-doctor@1.5.0
Ok to proceed? (y) y
(node:2080) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check native tooling versions
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check for issues with metro config
✔ Check npm/ yarn versions
✔ Check Expo config (app.json/ app.config.js) schema
✖ Check that packages match versions required by installed Expo SDK
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check that native modules use compatible support package versions for installed Expo SDK
Detailed check results:
(node:2150) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
The following packages should be updated for best compatibility with the installed expo version:
@react-native-async-storage/async-storage@1.23.1 - expected version: 1.21.0
@react-native-community/netinfo@11.3.1 - expected version: 11.1.0
react-native-get-random-values@1.11.0 - expected version: ~1.8.0
react-native-safe-area-context@4.9.0 - expected version: 4.8.2
Your project may not work correctly until you install the correct versions of the packages.
Found outdated dependencies
Advice: Use 'npx expo install --check' to review and upgrade your dependencies.
One or more checks failed, indicating possible issues with the project.
The text was updated successfully, but these errors were encountered:
drewboardman
changed the title
Metro error: Unable to resolve module u/unimodules/core fromexpo-splash-screen/build/SplashScreen.js
Metro error: Unable to resolve module u/unimodules/core from expo-splash-screen/build/SplashScreen.js
Apr 20, 2024
Hi @drewboardman! What version of expo-splash-screen do you have installed locally? E.g. run node --print "require('expo-splash-screen/package.json').version" in the project root.
Minimal reproducible example
https://github.com/drewboardman/expo-router-amplify-issue/tree/main
What platform(s) does this occur on?
Web
Did you reproduce this issue in a development build?
Yes
Summary
As the title explains, I see an error when building and running this minimal expo example:
Environment
This is running on my laptop. I got another friend to reproduce the error on his machine with the same repo.
Expo Doctor Diagnostics
$ npx expo-doctor@latest
Need to install the following packages:
expo-doctor@1.5.0
Ok to proceed? (y) y
(node:2080) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead.(Use
node --trace-deprecation ...
to show where the warning was created)✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check native tooling versions
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check for issues with metro config
✔ Check npm/ yarn versions
✔ Check Expo config (app.json/ app.config.js) schema
✖ Check that packages match versions required by installed Expo SDK
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check that native modules use compatible support package versions for installed Expo SDK
Detailed check results:
(node:2150) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead.(Use
node --trace-deprecation ...
to show where the warning was created)The following packages should be updated for best compatibility with the installed expo version:
@react-native-async-storage/async-storage@1.23.1 - expected version: 1.21.0
@react-native-community/netinfo@11.3.1 - expected version: 11.1.0
react-native-get-random-values@1.11.0 - expected version: ~1.8.0
react-native-safe-area-context@4.9.0 - expected version: 4.8.2
Your project may not work correctly until you install the correct versions of the packages.
Found outdated dependencies
Advice: Use 'npx expo install --check' to review and upgrade your dependencies.
One or more checks failed, indicating possible issues with the project.
The text was updated successfully, but these errors were encountered: