0

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?

Alex Miller
  • 69,183
  • 25
  • 122
  • 167
Xavi
  • 583
  • 1
  • 7
  • 13
  • Could you provide all options you pass to the `cljs` task as well as the .cljs.edn file for your build (assuming you have one)? – Martin Klepsch Dec 17 '17 at 16:23

1 Answers1

0

Fixed by changing the version of the ClojureScript dependency in build.boot from 1.9.293 to 1.9.89 (that's the latest that I found that still works).

Xavi
  • 583
  • 1
  • 7
  • 13