-
Notifications
You must be signed in to change notification settings - Fork 232
Description
When building an Expo project (iOS) with @invertase/react-native-apple-authentication, Metro fails to resolve the AppleButton component, even though it’s a core part of the package. The error occurs during bundling, specifically when trying to export the app (expo export:embed).
Unable to resolve module ./AppleButton from /Users/expo/workingdir/build/node_modules/@invertase/react-native-apple-authentication/lib/index.js:
None of these files exist:
- node_modules/@invertase/react-native-apple-authentication/lib/AppleButton(.js|.ts|.jsx|.tsx|.json)
- node_modules/@invertase/react-native-apple-authentication/lib/AppleButton
Complete log from expo:
Starting Metro Bundler
iOS node_modules/expo-router/entry.js ▓▓▓▓▓▓▓▓▓░░░░░░░ 59.7% (605/783)
iOS node_modules/expo-router/entry.js ▓▓▓▓▓▓▓▓▓▓▓▓▓░░░ 82.7% (1487/1635)
iOS Bundled 7286ms node_modules/expo-router/entry.js (1836 modules)
Exporting server
λ node_modules/expo-router/build/static/getServerManifest.js ▓▓▓▓▓▓▓▓▓▓▓▓▓░░░ 82.3% (1312/1446)
λ Bundling failed 4022ms node_modules/expo-router/build/static/getServerManifest.js (1603 modules)
Unable to resolve module ./AppleButton from /Users/expo/workingdir/build/node_modules/@invertase/react-native-apple-authentication/lib/index.js:
None of these files exist:
- node_modules/@invertase/react-native-apple-authentication/lib/AppleButton(.web.ts|.ts|.web.tsx|.tsx|.web.js|.js|.web.jsx|.jsx|.web.json|.json|.web.cjs|.cjs|.web.scss|.scss|.web.sass|.sass|.web.css|.css|.web.cjs|.cjs|.web.mjs|.mjs)
- node_modules/@invertase/react-native-apple-authentication/lib/AppleButton
22 |
23 |
24 | export { default as AppleButton } from './AppleButton';
| ^
25 |
26 | /**
27 | * iOS
Error: Unable to resolve module ./AppleButton from /Users/expo/workingdir/build/node_modules/@invertase/react-native-apple-authentication/lib/index.js:
None of these files exist:
- node_modules/@invertase/react-native-apple-authentication/lib/AppleButton(.web.ts|.ts|.web.tsx|.tsx|.web.js|.js|.web.jsx|.jsx|.web.json|.json|.web.cjs|.cjs|.web.scss|.scss|.web.sass|.sass|.web.css|.css|.web.cjs|.cjs|.web.mjs|.mjs)
- node_modules/@invertase/react-native-apple-authentication/lib/AppleButton
22 |
23 |
24 | export { default as AppleButton } from './AppleButton';
| ^
25 |
26 | /**
27 | * iOS
Error: Unable to resolve module ./AppleButton from /Users/expo/workingdir/build/node_modules/@invertase/react-native-apple-authentication/lib/index.js:
None of these files exist:
- node_modules/@invertase/react-native-apple-authentication/lib/AppleButton(.web.ts|.ts|.web.tsx|.tsx|.web.js|.js|.web.jsx|.jsx|.web.json|.json|.web.cjs|.cjs|.web.scss|.scss|.web.sass|.sass|.web.css|.css|.web.cjs|.cjs|.web.mjs|.mjs)
- node_modules/@invertase/react-native-apple-authentication/lib/AppleButton
22 |
23 |
24 | export { default as AppleButton } from './AppleButton';
| ^
25 |
26 | /**
27 | * iOS
at ModuleResolver.resolveDependency (/Users/expo/workingdir/build/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:114:15)
at DependencyGraph.resolveDependency (/Users/expo/workingdir/build/node_modules/metro/src/node-haste/DependencyGraph.js:239:43)
at /Users/expo/workingdir/build/node_modules/metro/src/lib/transformHelpers.js:165:21
at resolveDependencies (/Users/expo/workingdir/build/node_modules/metro/src/DeltaBundler/buildSubgraph.js:42:25)
at visit (/Users/expo/workingdir/build/node_modules/metro/src/DeltaBundler/buildSubgraph.js:83:30)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 5)
at visit (/Users/expo/workingdir/build/node_modules/metro/src/DeltaBundler/buildSubgraph.js:92:5)
at async Promise.all (index 13)
at visit (/Users/expo/workingdir/build/node_modules/metro/src/DeltaBundler/buildSubgraph.js:92:5)
npx expo export:embed --eager --platform ios --dev false exited with non-zero code: 1