This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
I'm getting
[2020-11-20 20:08:05.240 - INFO] duplicate resource com/fulcrologic/fulcro/mutations.cljc on classpath, using jar:file:/home/buidler/.m2/repository/com/fulcrologic/fulcro/3.4.3/fulcro-3.4.3.jar!/com/fulcrologic/fulcro/mutations.cljc over file:/home/buidler/project/src/app/com/fulcrologic/fulcro/mutations.cljc
But I don't understand why. I want to use my file, not the version in the jar file. Looking at these instructions https://shadow-cljs.github.io/docs/UsersGuide.html#_patching_librariesI think I got it. Looks like I have to restart shadow-cljs whenever there's a modification.
which version is this? it should be using the file not in the jar always but that kinda depends on which version you use?
Should I be concerned much about a shadow-cljs upgrade breaking my application in some way?
since the upgrade also involves upgrading CLJS and the closure-compiler that can always happen
I made a Gnome Extension with ClojureScript that does nothing useful !!! thanks @thheller for support š
Hey there š Iām building an app that requires an in-browser-evaluator, and so, Iām using the shadow-cljs-bootstrap functionality. Iāve mostly followed the https://code.thheller.com/blog/shadow-cljs/2017/10/14/bootstrap-support.html. Iām having trouble creating a release of my app with the bootstrap target. I get a āgoog is not definedā error. Works in dev mode. Not sure what Iām missing.
Hereās my project.clj: https://github.com/nilenso/in-browser-evaluator/blob/master/project.clj
Iāve tried setting compile options to :optimizations :simple
. That doesnāt work either.
If I compile app
and bootstrap-support
separately in dev mode, it works. i.e shadow-cljs compile app bootstrap-support
.
Yeah, I tried that as well. I also mentioned that above. Same error, āgoog not definedā.
Yeah, same error. Not sure what Iām missing: https://github.com/nilenso/in-browser-evaluator/blob/master/project.clj#L30-L45
assuming you are loading /js/compiled/app.js
in your HTML? I mean where exactly do you get that error?
Might be worth adding this as a note in the blog post, or in the user-guide, perhaps.
@thheller while I have you here, another question: I would like the compiler state to be refreshed every time I run eval. Is there a way to do this?
I mean you can reset the compiler state but that doesn't reset the runtime state so that wouldn't do much
Iām looking for something similar to a repl refresh, I guess. Where the functions/vars not currently in the file arenāt in the registry?
I want every āeval-strā to be without the context of the previous eval. So if a function foo
was defined with the previous eval, calling (foo)
with a new eval shouldnāt work.