GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Bug] Random failures when launching Expo scenarios · Issue #1327 · microsoft/vscode-react-native

[Bug] Random failures when launching Expo scenarios #1327

New issue
Copy link
New issue
Copy link
Closed
#1338
Closed
[Bug] Random failures when launching Expo scenarios#1327
#1338
Copy link
Assignees
JiglioNero
Labels
Testbug📚 documentation

Description

@SounD120
Yuri Skorokhodov (SounD120)
opened on Jun 25, 2020
Issue body actions

🐛 What is the bug? How can we reproduce it?

Sometimes Expo fails to launch with strange errors. But if we run Expo several times after that - it launches without any problems.

  1. Launch Debug in Exponent scenario
  2. See random XDL failures like Socket hang up, Module .vscode/exponentIndex.js does not exist in Haste module map
  3. QR Code is not rendered

Expected behavior

Expo works without problems

  • React Native Tools extension version: 0.16.0
  • Expo SDK version (if applicable): 37

Activity

  1. Yuri Skorokhodov (SounD120)
    added
    bug
    on Jun 25, 2020
  2. Yuri Skorokhodov (SounD120)
    assigned
    JiglioNero
    on Jun 25, 2020
  3. JiglioNero commented on Jul 7, 2020

    @JiglioNero
    JiglioNero
    on Jul 7, 2020
    Contributor
    More actions

    #1337
    This error may appear when running React Native apps via Expo on macOS:

    Error: Unable to resolve module `./.vscode/exponentIndex` from ``: 
    
    None of these files exist:
      * .vscode/exponentIndex(.native|.android.expo.ts|.native.expo.ts|.expo.ts|.android.expo.tsx|.native.expo.tsx|.expo.tsx|.android.expo.js|.native.expo.js|.expo.js|.android.expo.jsx|.native.expo.jsx|.expo.jsx|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json|.android.wasm|.native.wasm|.wasm)
      * .vscode/exponentIndex/index(.native|.android.expo.ts|.native.expo.ts|.expo.ts|.android.expo.tsx|.native.expo.tsx|.expo.tsx|.android.expo.js|.native.expo.js|.expo.js|.android.expo.jsx|.native.expo.jsx|.expo.jsx|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json|.android.wasm|.native.wasm|.wasm)
    

    This may happen because Metro may not cache this file to Haste map. To solve this problem you can:

    • Restart Packager
    • Add the following lines to metro.config.js:
    module.exports.watchFolders = ['.vscode'];
  4. Yuri Skorokhodov (SounD120)
    linked a pull request that will close this issueAdd solution of entry point not exist error for Expo on macOS to Known issues for master branch #1338on Jul 13, 2020
  5. SounD120 commented on Jul 13, 2020

    @SounD120
    Yuri Skorokhodov (SounD120)
    on Jul 13, 2020
    ContributorAuthor
    More actions

    Steps to solve the problem were added in #1337, #1338.

  6. Yuri Skorokhodov (SounD120)
    closed this as completedon Jul 13, 2020
  7. Yuri Skorokhodov (SounD120)
    added
    📚 documentation
    Test
    on Jul 13, 2020
  8. theartificialguy commented on Sep 18, 2023

    @theartificialguy
    Yash (theartificialguy)
    on Sep 18, 2023
    More actions

    JiglioNero Yuri Skorokhodov (@SounD120) This issue is still relevant in 2023, there is already a watchFolders: ['.vscode'] setting added to my metro.config.js, still getting the following error:

    Error: Unable to resolve module ./.vscode/exponentIndex from /Users/username/Desktop/my-app/.:
    
    None of these files exist:
      * .vscode/exponentIndex(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json|.android.svg|.native.svg|.svg|.android.gif|.native.gif|.gif)
      * .vscode/exponentIndex/index(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json|.android.svg|.native.svg|.svg|.android.gif|.native.gif|.gif)
        at ModuleResolver.resolveDependency (/Users/username/Desktop/my-app/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:136:15)
        at DependencyGraph.resolveDependency (/Users/username/Desktop/my-app/node_modules/metro/src/node-haste/DependencyGraph.js:231:43)
        at /Users/username/Desktop/my-app/node_modules/metro/src/lib/transformHelpers.js:129:24
        at Server._resolveRelativePath (/Users/username/Desktop/my-app/node_modules/metro/src/Server.js:1137:12)
        at async Server.requestProcessor [as _processBundleRequest] (/Users/username/Desktop/my-app/node_modules/metro/src/Server.js:464:37)
        at async Server._processRequest (/Users/username/Desktop/my-app/node_modules/metro/src/Server.js:420:9)
    

    metro.config.js:

    const { getDefaultConfig } = require('@expo/metro-config');
    module.exports = (async () => {
        const {
            resolver: { sourceExts, assetExts },
        } = await getDefaultConfig(__dirname);
        return {
            resolver: {
                assetExts: [...assetExts, 'gif'].filter(ext => ext !== 'svg'),
                sourceExts: [...sourceExts, 'svg', 'gif'],
            },
            transformer: {
                assetPlugins: ['expo-asset/tools/hashAssetFiles'],
            },
            watchFolders: ['.vscode'],
        };
    })();
    

    package.json:

    "expo": "^46.0.0",
    "react-native": "0.69.6",
    "react": "18.0.0",
    

    project type: Expo Bare react native project

    I checked my .vscode folder and only found a launch.json file...

    I'm actually trying to run a expo dev client build on my physical device.
    What I do is: (after building a dev client on EAS servers and installing it on android physical device):-

    1. yarn start -c (to start the server)
    2. scanned the qr generated from above command, launches the app and the error is thrown as mentioned above.

    Any solution to this? as the above mentioned didn't work as expected...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @JiglioNero
    JiglioNero

Labels

Testbug📚 documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402792 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.