This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-13
Channels
- # aws-lambda (21)
- # beginners (8)
- # boot (67)
- # braveandtrue (2)
- # cider (12)
- # cljs-dev (38)
- # cljsjs (87)
- # cljsrn (11)
- # clojure (307)
- # clojure-austin (29)
- # clojure-finland (1)
- # clojure-italy (9)
- # clojure-russia (19)
- # clojure-spec (71)
- # clojure-uk (33)
- # clojurescript (109)
- # clojutre (1)
- # core-async (2)
- # cursive (24)
- # datomic (11)
- # devops (5)
- # ethereum (5)
- # figwheel (2)
- # hoplon (25)
- # ipfs (1)
- # jobs (1)
- # luminus (17)
- # off-topic (2)
- # om (38)
- # om-next (3)
- # onyx (166)
- # other-lisps (1)
- # proton (5)
- # re-frame (15)
- # reagent (45)
- # ring (2)
- # spacemacs (6)
- # specter (12)
- # untangled (58)
- # yada (23)
has anyone seen such error lately: > Could not load content for http://tomplus.local:8100/index.html.out/cljs/core/async/impl/index.html.out/cljs/core/async/impl/timers.cljs : HTTP status code: 404
(show :fileset true)
shows this:
├── admin
│ ├── core.cljs
│ └── docs.cljs
...
└── index.html.out
├── admin
│ ├── core.cljs
│ ├── core.cljs.cache.json
│ ├── core.js
│ ├── core.js.map
│ ├── docs.cljs
│ ├── docs.cljs.cache.json
│ ├── docs.js
│ └── docs.js.map
and my build pipeline is as follows:
(comp
(watch)
(speak)
(environ)
(hoplon)
(cljs)
(from-cljsjs :profile :development)
(show :fileset true)
(serve :port 8100))
One of the source maps (`/Users/pair/.boot/cache/tmp/Users/pair/ap/fe/163d/6qp7pj/index.html.out/admin/core.js.map`) looks like this:
{
"version": 3,
"file": "\/Users\/pair\/.boot\/cache\/tmp\/Users\/pair\/ap\/fe\/163d\/qcfgqv\/index.html.out\/admin\/core.js",
"sources": [
"index.html.out\/admin\/core.cljs"
],
"lineCount": 47,
"mappings": ";AAAA;;;;;;;;;;;AAcA;;;kBAAA,lBAASI;...",
"names": [
"args__10705__auto__",
"vec__20835",
"hoplon.core\/parse-args",
"cljs.core\/nth",
"admin.core\/view",
"_",
"hoplon.material\/view-title",
"hoplon.ui\/elem",
"cljs.core\/reset!",
"app.route\/cell"
]
}
now i dont know a lot about source maps, but i guess the sources should be either 1. "\/index.html.out\/admin\/core.cljs" (starting with a slash) 2. "core.cljs" (relative to the compiled file)
@flyboarder I got the auth stuff working earlier without a hitch. thanks for the adding the docs!
@jjttjj awesome!
cljs {:optimizations :none
:source-map true
:compiler-options {:parallel-build true
:verbose false
:cache-analysis true
:recompile-dependents true}}
these are my options.
if i comment them out i would actually get "sources":["core.cljs"]
BUT i still see the old location in the browser even after cmd-shift-r in chrome, which should be a force reload... 😕
okay, now it works, IF i comment out the :source-map true
option... it sounds like a bug in boot-cljs
then
i see there is a :source-map-path
option too which is set even if :optimizations
is :none
https://github.com/adzerk-oss/boot-cljs/blob/master/src/adzerk/boot_cljs/middleware.clj#L113-L116