Skip to content
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

Unable to resold expo-router/entry #30416

Closed
gpossst opened this issue Jul 15, 2024 · 1 comment
Closed

Unable to resold expo-router/entry #30416

gpossst opened this issue Jul 15, 2024 · 1 comment
Labels
needs review Issue is ready to be reviewed by a maintainer Router expo-router

Comments

@gpossst
Copy link

gpossst commented Jul 15, 2024

Minimal reproducible example

https://github.com/gpossst/expo-issue

Which package manager are you using? (Yarn is recommended)

npm

If the issue is web-related, please select the bundler (web.bundler in the app.json)

None

Summary

I'm getting an error resolving expo-router/entry on a brand new app. Following Expo docs, using npx create-expo-app@latest, immediately cd into the project and using npx expo start. I've tried reverting to old SDKs, but nothing seems to work. Not sure if the error is even reproducible on other machines.

Unable to resolve module ./node_modules/expo-router/entry from /Users/garrett/Documents/[03] Code/test/.: 

None of these files exist:
  * node_modules/expo-router/entry(.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.mjs|.native.mjs|.mjs|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json|.ios.cjs|.native.cjs|.cjs|.ios.scss|.native.scss|.scss|.ios.sass|.native.sass|.sass|.ios.css|.native.css|.css)
  * node_modules/expo-router/entry/index(.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.mjs|.native.mjs|.mjs|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json|.ios.cjs|.native.cjs|.cjs|.ios.scss|.native.scss|.scss|.ios.sass|.native.sass|.sass|.ios.css|.native.css|.css)

RCTFatal
__28-[RCTCxxBridge handleError:]_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_drain
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
-[UIApplication _run]
UIApplicationMain
main
start_sim
0x0
0x0

Environment

expo-env-info 1.2.0 environment info:
    System:
      OS: macOS 14.2.1
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 20.15.1 - ~/.nvm/versions/node/v20.15.1/bin/node
      npm: 10.8.2 - ~/node_modules/.bin/npm
      Watchman: 2024.07.01.00 - /opt/homebrew/bin/watchman
    Managers:
      CocoaPods: 1.15.2 - /opt/homebrew/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 23.5, iOS 17.5, macOS 14.5, tvOS 17.5, visionOS 1.2, watchOS 10.5
    IDEs:
      Android Studio: 2024.1 AI-241.18034.62.2411.12071903
      Xcode: 15.4/15F31d - /usr/bin/xcodebuild
    npmPackages:
      expo: ~51.0.20 => 51.0.20 
      expo-router: ~3.5.18 => 3.5.18 
      react: 18.2.0 => 18.2.0 
      react-dom: 18.2.0 => 18.2.0 
      react-native: 0.74.3 => 0.74.3 
      react-native-web: ~0.19.10 => 0.19.12 
    Expo Workflow: managed
@gpossst gpossst added needs validation Issue needs to be validated Router expo-router labels Jul 15, 2024
@expo-bot expo-bot added needs review Issue is ready to be reviewed by a maintainer and removed needs validation Issue needs to be validated labels Jul 15, 2024
@marklawlor
Copy link
Contributor

I'm unable to reproduce this issue and there does not appear to be another related issues. This suggests that its a localised issue on your machine. Things I would be troubleshooting

  • Do those files actually exist?
  • You have a node_modules in your home folder. Feels unusual, could be causing a resolution issue
  • Is this your first React Native project? Do other projects work fine?
  • Is there an npm error file? Does it contain any warnings?
  • What happens if you try running npm install in the produce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review Issue is ready to be reviewed by a maintainer Router expo-router
Projects
None yet
Development

No branches or pull requests

3 participants