简体   繁体   中英

Browser tries to load ClojureScript source map from the wrong path

I'm using Boot to build a Clojure(Script) web app. The browser loads the transpiled code from 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

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

and when loaded, no code is shown and "(source mapped from core.js)" appears in the status bar.

Which could be the problem?

通过改变ClojureScript依赖的版本修正了build.boot1.9.29389年9月1日 (也就是我发现,仍然工作的最新)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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