This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-03-03
Channels
- # aws (9)
- # beginners (5)
- # calva (5)
- # cljdoc (7)
- # cljsrn (3)
- # clojure (50)
- # clojure-greece (3)
- # clojure-uk (96)
- # clojurescript (18)
- # community-development (2)
- # core-logic (3)
- # cursive (4)
- # datomic (7)
- # emacs (3)
- # figwheel-main (3)
- # fulcro (5)
- # luminus (4)
- # mount (2)
- # nrepl (11)
- # onyx (6)
- # portkey (1)
- # qlkit (3)
- # re-frame (6)
- # shadow-cljs (33)
- # sql (8)
- # test-check (18)
- # yada (3)
hmm. now I am getting errors like Uncaught ReferenceError: $spark_web$views$account$index$index$$ is not defined
. this is happening after the module loads, which I verified by adding a logging statement via :append
.
I can see in the source of the account module that it is defining that thing, function $spark_web$views$account$index$index$$($var_args$jscomp$814$$) {...}
, but it isn’t being set on the window object.
if I manually add this line below it, window.$spark_web$views$account$index$index$$ = $spark_web$views$account$index$index$$;
, then it loads correctly.
for now set :compiler-options {:language-out :ecmascript5}
in your build config. I'll finish a release later that adds that default back.
the issue is that GCC defaults to strict mode so the function
declared in the module files isn't visible globally
@thheller it works with that ecmascript setting. I might have put :output-wrapper in the wrong place
Hello all, does anybody know a workaround to only trigger a download of deps.edn
dependencies whilst this issue is still open: https://github.com/thheller/shadow-cljs/issues/362? I’m sure I’ve read something somewhere about triggering a download of dependencies for deps
projects, but can’t seem to find it.
@austinbirch you can just add shadow-cljs
to your deps.edn
and use clj
to download the deps. clj -Stree
or so
@thheller ah, okay. That works - thanks very much.
Has someone been able to successfully use atlaskit components with shadow-cljs? (see https://atlaskit.atlassian.com/packages/core/global-navigation ) I'm hitting a
You probably need to run:
npm install querystring
caused by a dependency:
node_modules/url/url.js
And I'm not sure how I can troubleshoot it.
I installed querystring
, but the problem is not going away. querystring
has a regular index.js
which seems to be the top level module.Solved adding this to a build:
:js-options {:resolve {"querystring" {:target :npm
:require "querystring/index.js"}}}
its one of those packages that is overriden by https://github.com/webpack/node-libs-browser
@thheller Hi Thomas, first of all, thanks for the awesome work. In case you got some time, I just created this issue: https://github.com/thheller/shadow-cljs/issues/453 and I am here for today if you want me to try some things out 🙂
@thheller Thanks for the new article on code splitting! It's good to have an overview of this functionality.
In the article, you mention shadow.lazy
but it's not actually used anywhere. Also, demo.util/lazy-component
is used but there's no implementation. Is this an exercise for the reader or will there be any addition to the article? I saw the code splitting example in your examples repo but it's very simplistic and doesn't have anything about lazy loading components.