[英]Browser tries to load ClojureScript source map from the wrong path
I'm using Boot to build a Clojure(Script) web app. 我正在使用Boot来构建Clojure(Script)Web应用程序。 The browser loads the transpiled code from http://localhost:8080/main.out/calculators/frontend/core.js
浏览器从http:// localhost:8080 / main.out / calculators / frontend / core.js加载已编译的代码
The last line of that file is 该文件的最后一行是
//# sourceMappingURL=core.js.map
I can load that map file from the browser using the URL http://localhost:8080/main.out/calculators/frontend/core.js.map 我可以使用URL http:// localhost:8080 / main.out / calculators / frontend / core.js.map从浏览器加载该地图文件
However, if in Chrome Dev Tools' Sources panel I search for the corresponding ClojureScript file, it appears with a wrong URL (see the main.out/calculators/frontend
nested in itself) http://localhost:8080/main.out/calculators/frontend/main.out/calculators/frontend/core.cljs 但是,如果我在Chrome Dev Tools的“源”面板中搜索相应的ClojureScript文件,则该文件会显示错误的URL(请参阅嵌套在其自身中的
main.out/calculators/frontend
) http:// localhost:8080 / main.out /计算器/前端/main.out/计算器/前端/core.cljs
and when loaded, no code is shown and "(source mapped from core.js)" appears in the status bar. 并且在加载后,不会显示任何代码,并且在状态栏中会显示“(从core.js映射的源)”。
Which could be the problem? 可能是哪个问题?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.