6

Chrome doesn't pick up the js source map and dumps the error from the original minified source. Source map clearly lays beside the minified js file, with the same name but a .map extension. And there is a proper reference to it at the end of minified js file:

//# sourceMappingURL=main.2635fcfe.js.map

Enable JavaScript source maps setting is also checked in the Dev Tools:

enter image description here

All the resources on the web state that it should just work. Any ideas on why it might not? Is there anyway to debug the source map inclusion process, maybe witness the path that Chrome is testing?

jayarjo
  • 16,124
  • 24
  • 94
  • 138

1 Answers1

2

Edit:

Sharing my steps here:

  1. check Enable JavaScript source maps, doesn't work.
  2. I assume it may have something to do with my extensions? So I tried open a incognito window, works fine.
  3. go back to normal mode, works fine.

I had the same issue. Works fine on Firefox but not Chrome.

Got solved by open incognito window~

Marvin Xu
  • 139
  • 7
  • 1
    This does not really answer the question. You won't expect your audience to always view your site in incognito window. – Henryc17 Feb 14 '22 at 03:13
  • @Henryc17 I'm just sharing my info and hope this can help. I have no idea why this work myself. Plus I use sourcemap in dev for debugging so there is no audience problems. – Marvin Xu Feb 16 '22 at 12:46
  • It would be nice to hear that, your edit seems to be much clear and better now :) Sorry for the inconvenience taken to you if I did :) – Henryc17 Feb 16 '22 at 12:56
  • @Henryc17 Don't be. You helped me make this more clear, thx! – Marvin Xu Feb 21 '22 at 11:26