Closed Santa0727 closed 4 months ago
Hi there, any solution. I have the same error. Yesterday everything worked fine. My error is:
Error: Unable to resolve module .\node_modules\expo\AppEntry.js from C:\folderpath/.: .\node_modules\expo\AppEntry.js could not be found within the project or in these directories: [expo-cli] node_modules [expo-cli] Error: Unable to resolve module .\node_modules\expo\AppEntry.js from C:\folderpath/.: .\node_modules\expo\AppEntry.js could not be found within the project or in these directories: [expo-cli] node_modules [expo-cli] at ModuleResolver.resolveDependency (C:\folderpath\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:138:15) [expo-cli] at DependencyGraph.resolveDependency (C:\folderpath\node_modules\metro\src\node-haste\DependencyGraph.js:231:43) [expo-cli] at C:\folderpath\node_modules\metro\src\lib\transformHelpers.js:156:21 [expo-cli] at Server._resolveRelativePath (C:\folderpath\node_modules\metro\src\Server.js:1023:12) [expo-cli] at processTicksAndRejections (node:internal/process/task_queues:95:5) [expo-cli] at MetroBundlerDevServer.resolveRelativePathAsync (C:\folderpath\node_modules\@expo\cli\src\start\server\metro\MetroBundlerDevServer.ts:1204:12) [expo-cli] at MetroBundlerDevServer.metroLoadModuleContents (C:\folderpath\node_modules\@expo\cli\src\start\server\metro\MetroBundlerDevServer.ts:429:35) [expo-cli] at MetroBundlerDevServer.legacySinglePageExportBundleAsync (C:\folderpath\node_modules\@expo\cli\src\start\server\metro\MetroBundlerDevServer.ts:552:20) [expo-cli] at C:\folderpath\node_modules\@expo\cli\src\export\exportApp.ts:137:26 [expo-cli] at async Promise.all (index 0)
I cleared up everything and started from scratch: 1 clear node_modules
... also npx expo start works perfectly. Just update has issues
Many thanks, Radu
I encountered the same issue today. It seems to occur on both Windows 10 and 11, but not on Mac.
Same here, from today:
[expo-cli] Error: Unable to resolve module .\node_modules\expo-router\entry.js from <my project>: .\node_modules\expo-router\entry.js could not be found within the project or in these directories:
[expo-cli] node_modules
Versions:
"expo-asset": "~10.0.6",
"expo-constants": "~16.0.2",
"expo-image": "~1.12.11",
"expo-linear-gradient": "~13.0.2",
"expo-linking": "~6.3.1",
"expo-localization": "~15.0.3",
"expo-location": "~17.0.1",
"expo-router": "~3.5.16",
"expo-secure-store": "~13.0.1",
"expo-splash-screen": "~0.27.5",
"expo-status-bar": "~1.12.1",
"expo-system-ui": "~3.0.6",
"expo-updates": "~0.25.14",
same. used to works fine, but now cannot eas update. I am win 11 Error: Unable to resolve module .\node_modules\expo\AppEntry.js
Same issue here, downgrading to 51.0.9 seems to fix it for me but introduces other issues.
It's fixed with the latest update! "expo": "~51.0.14"
@stesvis It works! Thank you very much! 😀
@stesvis It works! Thank you very much! 😀
All i did was to check expo doctor and see that there was an update :)
Build/Submit details page URL
No response
Summary
I am using expo project and I wanted to update it so I tried to run
eas update
command but, it failed with the following error:[expo-cli] Error: Unable to resolve module .\node_modules\expo\AppEntry.js from/.: .\node_modules\expo\AppEntry.js could not be found within the project or in these directories:
[expo-cli] node_modules
[expo-cli] Error: Unable to resolve module .\node_modules\expo\AppEntry.js from /.: .\node_modules\expo\AppEntry.js could not be found within the project or in these directories:
[expo-cli] node_modules
[expo-cli] at ModuleResolver.resolveDependency (\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:138:15)
[expo-cli] at DependencyGraph.resolveDependency (\node_modules\metro\src\node-haste\DependencyGraph.js:231:43)
[expo-cli] at \node_modules\metro\src\lib\transformHelpers.js:156:21
[expo-cli] at Server._resolveRelativePath (\node_modules\metro\src\Server.js:1023:12)
[expo-cli] at MetroBundlerDevServer.resolveRelativePathAsync (\node_modules\@expo\cli\src\start\server\metro\MetroBundlerDevServer.ts:1204:12)
[expo-cli] at MetroBundlerDevServer.metroLoadModuleContents (\node_modules\@expo\cli\src\start\server\metro\MetroBundlerDevServer.ts:429:35)
[expo-cli] at MetroBundlerDevServer.legacySinglePageExportBundleAsync (\node_modules\@expo\cli\src\start\server\metro\MetroBundlerDevServer.ts:552:20)\@expo\cli\src\export\exportApp.ts:137:26
[expo-cli] at async Promise.all (index 0)
[expo-cli] at exportAppAsync (\node_modules\@expo\cli\src\export\exportApp.ts:127:7)
✖ Export failed
[expo-cli] at