-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on local build with very weird ENOTDIR #2173
Comments
What is your working dir when you run the |
/Users/cipri/dev/pp/al/al/apps/al Monorepo root: Not sure why eas would even want to access the /package.json from an h file? I'm going crazy over this.
|
I can reproduce it within monorepo. Even the
The |
@cipriancaba I had success with upgrading to SDK 50. |
Thanks @ddnzcn Been on 50 but still happening, really weird. I can run it with |
@cipriancaba I've recently reproduced the same error again while trying to open react-devtools. I suspect it's something related to nvm or npx. Are you also using nvm or something similar? |
Yeah, using nvm, only happens with this monorepo though |
I just tried to removed every other version that I had installed with nvm. It didn't worked. I'll investigate this a little further. Thank you for pointing me to |
It seems I have deleted .DS_Store file deleted in the local repository. Recloning the projected solved the issue for me. |
The problem happens because you somehow include "ios" and "android" folders in your My directory structure was like this:
And there was
which will include expo and all of its subdir. The problem is gone after I removed (Couldn't find a way to generate these folders outside expo dir. And also couldn't find a way to exclude them) |
Oh wow @sahinakkaya that's an interesting find. I tested that and it seems that expo now runs fine Still think this shouldn't happen and it should be fixed by the expo team Thanks for pointing me in the right direction
|
I have encountered the same problem again. This time it was not |
Build/Submit details page URL
No response
Summary
local build fails
❯ EXPO_DEBUG=1 DEBUG=expo:* npx eas build --local --profile development-simulator --platform ios
Error: ENOTDIR: not a directory, open '/Users/cipri/dev/pp/al/al/apps/al/ios/Pods/Headers/Private/FBLazyVector/FBLazyVector/FBLazyIterator.h/package.json'
Managed or bare?
managed
Environment
bunx expo-env-info
expo-env-info 1.0.5 environment info:
System:
OS: macOS 14.2.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.9.0 - ~/.nvm/versions/node/v20.9.0/bin/node
Yarn: 1.19.0 - ~/.nvm/versions/node/v18.17.1/bin/yarn
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.2, iOS 17.2, macOS 14.2, tvOS 17.2, visionOS 1.0, watchOS 10.2
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9477386
Xcode: 15.2/15C500b - /usr/bin/xcodebuild
npmPackages:
@expo/webpack-config: ^19.0.0 => 19.0.0
expo: ^50.0.0-preview.8 => 50.0.0-preview.8
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.73.1 => 0.73.1
npmGlobalPackages:
eas-cli: 5.9.3
Expo Workflow: bare
❯ npx expo-doctor
Error: ENOTDIR: not a directory, open '/Users/cipri/dev/pp/al/al/apps/al/ios/Pods/Headers/Private/FBLazyVector/FBLazyVector/FBLazyIterator.h/package.json'
Error output
Error: ENOTDIR: not a directory, open '/Users/cipri/dev/pp/al/al/apps/al/ios/Pods/Headers/Private/FBLazyVector/FBLazyVector/FBLazyIterator.h/package.json'
Reproducible demo or steps to reproduce from a blank project
happens in a monorepo
nohoist
"nohoist": [ "**/expo" ]
The text was updated successfully, but these errors were encountered: