fluttergoogle-chromehttp-status-code-503

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


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.


Solution

  • 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".