I’m setting up devcards in an existing project. I’ve got a 404 browser in the error because it’s trying to load showdown.js.map when on the server I have showdown.inc.js. This is with devcards 0.2.2. Anyone know what’s going on here?
@kestrel7 .map
extension refers to source mapping
are you maybe compiling without source maps?
I’ve taken the build config from the devcards githib docs:
{ :main "{{name}}.core" :devcards true ; <- note this :asset-path "js/compiled/devcards_out" :output-to "resources/public/js/{{sanitized}}_devcards.js" :output-dir "resources/public/js/devcards_out" :source-map-timestamp true }
I just added :source-map true to the build config and rebuilt the js source and still get the same error
So I don#t really understand why it wants the source map for this one js file.
oh right. that’s a foreign lib, which doesn’t have a source map
what ClojureScript version are you running?
clojurescript “1.8.51"
I’ll try 1.9.229 as the latest stable version
That loading error’s gone. Still don’t see my sample devcard but I'm one step forwards. Thanks @anmonteiro.