Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Expo CLI doesn't get connection URLs for all modes on fresh project #2488

Closed
michaeluskov opened this issue Aug 22, 2020 · 2 comments
Closed

Comments

@michaeluskov
Copy link

Description

I created fresh Expo project using expo init on expo-cli@3.24.2. When I run expo start and web browser opens http://localhost:19002/, all of three connection modes (Tunnel/LAN/Local) show dash instead of Connection URL and QR code.

Expected Behavior

Valid Connection URL and QR code.

Observed Behavior

Just dashes:

image

Full console output:

C:\Users\michaeluskov\Documents\zagoralken\zagoralken>expo start --lan
┌───────────────────────────────────────────────────────────────────────────────────────────┐
│                                                                                           │
│   Expo web is in beta, please report any bugs or missing features on the Expo repo.       │
│   You can follow the V1 release for more info: https://github.com/expo/expo/issues/6782   │
│                                                                                           │
└───────────────────────────────────────────────────────────────────────────────────────────┘

 React  You can now view zagoralken in the browser.

  Local:            http://localhost:19006/
  On Your Network:  http://192.168.56.1:19006/

Note that the development build is not optimized.

 › To create a production build, run expo build:web
 › Press w to open the project in browser.
 › Press Ctrl+C to exit.

 Expo  Press ? to show a list of all available commands.

Environment

  Expo CLI 3.24.2 environment info:
    System:
      OS: Windows 10 10.0.18363
    Binaries:
      Node: 14.3.0 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
      npm: 6.14.5 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
      expo: ~38.0.8 => 38.0.9
      react: ~16.11.0 => 16.11.0
      react-dom: ~16.11.0 => 16.11.0
      react-native-web: ~0.11.7 => 0.11.7
@byCedric
Copy link
Member

byCedric commented Aug 25, 2020

Hi @michaeluskov! It looks like your Expo instance is starting up in web mode, without specifying this. Have you tried to remove your .expo folder in your project and/or the .expo folder located in %USERPROFILE% on windows (note, this will sign you out and removes stored preferences from your computer). After that, Expo should start normally and show the proper connection types and QR code 😄 If not, try running either $ expo start --android and/or $ expo start --ios to force it in native mode.

Hope this helps! And let me know if it doesn't!

@michaeluskov
Copy link
Author

@byCedric Nothing has changed after removing these directories. Running expo start --android also starts web mode. Are there any extra logs I can get from Expo?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants