devcards

Devcards aims to provide a visual REPL experience for ClojureScript https://github.com/bhauman/devcards
2016-10-08T14:58:45.000092Z

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?

anmonteiro 2016-10-08T15:03:52.000093Z

@kestrel7 .map extension refers to source mapping

anmonteiro 2016-10-08T15:04:10.000094Z

are you maybe compiling without source maps?

2016-10-08T15:05:24.000095Z

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

2016-10-08T15:05:26.000096Z

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

2016-10-08T15:07:12.000097Z

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

2016-10-08T15:07:57.000098Z

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

anmonteiro 2016-10-08T15:12:55.000100Z

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

anmonteiro 2016-10-08T15:13:05.000101Z

what ClojureScript version are you running?

2016-10-08T15:50:15.000102Z

clojurescript “1.8.51"

2016-10-08T15:51:08.000103Z

I’ll try 1.9.229 as the latest stable version

2016-10-08T15:54:12.000104Z

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