This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
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_libraries
[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
I 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
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.
but you cannot reset the JS runtime state so you can create
(defn foo  ...) will create
cljs.user.foo = function() ... . resetting the compiler state will remove the definition from the analyzer