Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome DevTools for Node.js not loading source maps

I am working on a node.js API. We use typescript and I use Chrome dev tools for debuging. In the last day when I started the chrome node inspector it could not load my resource maps. I tried making a small mock project and it happened for that one too.

The warning it gives is DevTools failed to load source map: Could not load content for file://<path_to_source_map>: No setting registered: network.enable-unc-loading. I have the latest version of chrome 105 and I am on macOS 12.5.1.

I was thinking it might have something with mac permission but when I take the link to the file file://<path_to_source_map> and open it in browser it can open my file and I can add the file trough workspaces but it cannot link them even if I do it manually. I do not know if it is a chrome setting or what.

Any ideas ?

like image 264
Margarit Alexandru Avatar asked Mar 18 '26 12:03

Margarit Alexandru


1 Answers

I've found this setting:

network.enable-unc-loading

But this setting is not available in the Dev Tools console for Remote Targets so it didn't fix the issue.

like image 166
Jakub Vrána Avatar answered Mar 20 '26 03:03

Jakub Vrána