This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-09
Channels
- # announcements (5)
- # aws (5)
- # babashka (7)
- # beginners (152)
- # cider (10)
- # clj-kondo (30)
- # clj-on-windows (1)
- # cljs-dev (14)
- # cljsrn (19)
- # clojure (94)
- # clojure-australia (4)
- # clojure-europe (43)
- # clojure-nl (2)
- # clojure-uk (11)
- # clojurescript (16)
- # clojureverse-ops (5)
- # code-reviews (7)
- # community-development (6)
- # core-async (29)
- # cursive (50)
- # datomic (22)
- # docker (10)
- # figwheel-main (3)
- # fulcro (4)
- # graalvm (1)
- # introduce-yourself (2)
- # kaocha (9)
- # lambdaisland (2)
- # lsp (19)
- # malli (37)
- # off-topic (50)
- # polylith (8)
- # portal (1)
- # reagent (10)
- # rum (1)
- # shadow-cljs (24)
- # spacemacs (14)
- # yada (2)
How can I debug something like this, the error occurs when page hot-reload.
Uncaught ReferenceError: $map__115133 is not defined
at Object.shadow$cljs$devtools$client$env$src_is_loaded_QMARK_ [as src_is_loaded_QMARK_] (env.cljs:257)
at eval (env.cljs:279)
at eval (core.cljs:5203)
at eval (core.cljs:5203)
at Object.eval [as sval] (core.cljs:3452)
at Object.eval [as cljs$core$ISeqable$_seq$arity$1] (core.cljs:3509)
at Object.cljs$core$seq [as seq] (core.cljs:1236)
at Function.eval [as cljs$core$IFn$_invoke$arity$3] (core.cljs:2493)
at Object.eval [as cljs$core$IReduce$_reduce$arity$3] (core.cljs:3519)
at Function.eval [as cljs$core$IFn$_invoke$arity$3] (core.cljs:2565)
Looks like something related to path
? but the build succeed without errors, and page load with errors.@doglooksgood Is this a node app?
You might have to include something like:
:js-options {:keep-as-import #{"fs" "module" "path"
"react" "react-dom"}}
in your build. Wild guess.I'm facing a weird error (Shadow-CLJS 2.15.3
, re-frame 1.2.0
etc.) that happens only in the CI environment:
...
shadow-cljs - dependencies updated
[:webapp] Compiling ...
The required namespace "react-dom" is not available, it was required by "reagent/dom.cljs".
The same command (same Java and Node.js versions) works fine in my local. Any pointers would be helpful.
The npm packages are automatically installed, but let me confirm that. Thanks!
It was npm package cache issue. Sorry about the noise.
Hi all, I’m deploying a luminus app with shadow-cljs to heroku. What’s the trick to getting the shadow part to find the dependencies it needs? I’m getting this:
remote: The required namespace "react" is not available, it was required by "reagent/core.cljs".
Locally I just run npm install
What does your package.json
look like?
It could also be that npm install
is not getting run as part of what is going to heroku
That’s where I’m stuck, after getting a bit farther.
I’ve added this non-working step:
["shell" "npm" "install"]
in uberjars prep-tasks
I needed to add a nodejs buildpack to my Heroku app config.