Fork me on GitHub
#devcards
<
2016-10-08
>
kestrel714:10:45

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?

anmonteiro15:10:52

@kestrel7 .map extension refers to source mapping

anmonteiro15:10:10

are you maybe compiling without source maps?

kestrel715:10:24

I’ve taken the build config from the devcards githib docs:

kestrel715:10:26

{ :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 }

kestrel715:10:12

I just added :source-map true to the build config and rebuilt the js source and still get the same error

kestrel715:10:57

So I don#t really understand why it wants the source map for this one js file.

anmonteiro15:10:55

oh right. that’s a foreign lib, which doesn’t have a source map

anmonteiro15:10:05

what ClojureScript version are you running?

kestrel715:10:15

clojurescript “1.8.51"

kestrel715:10:08

I’ll try 1.9.229 as the latest stable version

kestrel715:10:12

That loading error’s gone. Still don’t see my sample devcard but I'm one step forwards. Thanks @anmonteiro.