SDK: 41
Platforms: Android / iOS
I just updated to SDK 42 on a git branch. When I returned to my SDK 41 branch and ran npm install
, my app stopped working. I get this error message:
Failed building JavaScript bundle.
Unable to resolve module ./registerTaskAsync from /.../node_modules/expo-notifications/build/index.js:
None of these files exist:
* node_modules/expo-notifications/build/registerTaskAsync(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
* node_modules/expo-notifications/build/registerTaskAsync/index(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
> 1 | export { default as getDevicePushTokenAsync } from './getDevicePushTokenAsync';
2 | export { default as getExpoPushTokenAsync } from './getExpoPushTokenAsync';
3 | export { default as getPresentedNotificationsAsync } from './getPresentedNotificationsAsync';
4 | export { default as presentNotificationAsync } from './presentNotificationAsync';
I’ve tried removing node_modules
and package-lock.json
and running npm install
, but the error remains. I’m confused because expo-notifications/build/index.js
doesn’t actually call a registerTaskAsync
module in my node_modules
.
Relevant package.json dependencies:
"dependencies": {
"expo": "^41.0.0",
"expo-notifications": "~0.11.6"
},