I'm getting "Could not read source map for chrome-error://chromewebdata/:" When attempting to run my Flutter app on Chrome
Asked Answered
D

4

18

Here is the full error:

Could not read source map for chrome-error://chromewebdata/: Unexpected 503 response from chrome-error://chromewebdata/neterror.rollup.js.map: Unsupported protocol "chrome-error:"

I have tried clearing browsing data as suggested online but I can't seem to find any other guidance. Help much appreciated.

Expected

I was expecting for the app to launch in Chrome.

Dynamotor answered 22/1 at 11:42 Comment(0)
T
2

Got the same in a react app upgraded to use vite ( you can get skeleton by yarn create vite repro -- --template react-ts )

The problem was because in my older app I missed index.html file that in turn contains the reference to the module "/src/index.tsx".

Throughout answered 28/1 at 14:5 Comment(0)
T
13

try to run npm start in terminal

then start debugging f5 in vscode

Tarahtaran answered 24/1 at 4:30 Comment(3)
Works perfectly as expected!Gablet
In my case "npm run dev" command worked before f5. Just mentioning here as it might help someone.Kannada
My case was debugging a Nuxt TypeScript app using pnpm; I needed to run pnpm run dev before launching the Chrome debug in VSCode.Diathermic
T
2

Got the same in a react app upgraded to use vite ( you can get skeleton by yarn create vite repro -- --template react-ts )

The problem was because in my older app I missed index.html file that in turn contains the reference to the module "/src/index.tsx".

Throughout answered 28/1 at 14:5 Comment(0)
Q
2

Thank you Sinos Gray! Once I saw this, I realized all I needed to do was to add a preLaunchTask setting to the configuration in launch.json:

{
  "version": "0.2.0",
  "configurations": [
    {
      "preLaunchTask": "npm: start",
    },
  ]
}

Now it runs via run (F5)

Hope this helps!!! :)

Quotha answered 27/3 at 3:8 Comment(0)
Y
-1

2 Could not read source map for chrome-error://chromewebdata/: Unexpected 503 response from chrome-error://chromewebdata/neterror.rollup.js.map: Unsupported protocol "chrome-error:"

Yorgos answered 1/8 at 9:35 Comment(2)
Please don't post questions as answers. This is a similar type of error that the OP received. It's not the solution.Regeniaregensburg
Please explain your answer as it looks like copy of OPs question and not the solutionRegeniaregensburg

© 2022 - 2024 — McMap. All rights reserved.