简体   繁体   English

适用于 Node.js 的 Chrome DevTools 未加载源地图

[英]Chrome DevTools for Node.js not loading source maps

I am working on a node.js API.我正在研究 node.js API。 We use typescript and I use Chrome dev tools for debuging.我们使用 typescript,我使用 Chrome 开发工具进行调试。 In the last day when I started the chrome node inspector it could not load my resource maps.在我启动 chrome 节点检查器的最后一天,它无法加载我的资源映射。 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 .它给出的警告是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.我有最新版本的 chrome 105,我使用的是 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.我在想它可能有 mac 权限,但是当我链接到文件file://<path_to_source_map>并在浏览器中打开它时,它可以打开我的文件,我可以通过工作区添加文件,但它甚至无法链接它们如果我手动进行。 I do not know if it is a chrome setting or what.不知道是chrome设置还是什么。

Any ideas?有任何想法吗?

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.但此设置在远程目标的开发工具控制台中不可用,因此无法解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM