expo-splash-screen error after update expo sdk from 39 to 40

Hi, after update my app from 39 to 40 i’ve this error:

iOS Bundling failed 39649ms
Unable to resolve module expo-modules-core from MYPATH/node_modules/expo-splash-screen/build/SplashScreen.js: expo-modules-core could not be found within the project.

If you are sure the module exists, try these steps:

  1. Clear watchman watches: watchman watch-del-all
  2. Delete node_modules and run yarn install
  3. Reset Metro’s cache: yarn start --reset-cache
  4. Remove the cache: rm -rf /tmp/metro-*

1 | import { UnavailabilityError } from ‘expo-modules-core’;
| ^
2 | import ExpoSplashScreen from ‘./ExpoSplashScreen’;
3 | // @needsAudit
4 | /**

I’ve followed all steps but i can’t solve… how can i do?
PS: i don’t have expo-splash-screen inside my package.json
Thanks

I’ve solved:

  1. delete package-lock.json
  2. delete yarn.lock
  3. yarn install
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.