bug: Module `build/Expo.fx` coudl not be found within package
jyeung79 opened this issue · comments
Provide environment information
System:
OS: macOS 14.2.1
CPU: (10) arm64 Apple M1 Pro
Memory: 1.13 GB / 32.00 GB
Shell: 5.9 - /opt/homebrew/bin/zsh
Binaries:
Node: 21.5.0 - ~/.nvm/versions/node/v21.5.0/bin/node
Yarn: 4.0.2 - ~/.nvm/versions/node/v21.5.0/bin/yarn
npm: 10.2.4 - ~/.nvm/versions/node/v21.5.0/bin/npm
pnpm: 8.14.0 - ~/.nvm/versions/node/v21.5.0/bin/pnpm
bun: 1.0.21 - /opt/homebrew/bin/bun
Describe the bug
Error: While resolving module `expo/build/Expo.fx`, the Haste package `expo` was found. However the module `build/Expo.fx` could not be found within the package. Indeed, none of these files exist:
Received this error when trying to locally build iOS app or launch the app in Expo Go.
Link to reproduction
https://github.com/jyeung79/ijn
To reproduce
Linked repository is based on a mix of different repos for a personal codebase.
Was trouble shooting but couldn't figure out the issue until I ran into this post expo/eas-cli#1025.
The issue comes from the conflict between the package name for apps/expo
and the actual package expo
in the node modules. Issue is resolved after renaming the project folder to another name such as apps/expo-app
Additional information
Solution: Renaming the folder name for apps/expo to a different naming apps/expo-app