This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-03
Channels
- # adventofcode (2)
- # announcements (1)
- # asami (35)
- # babashka (67)
- # beginners (97)
- # cherry (3)
- # clj-yaml (3)
- # cljsrn (9)
- # clojure (44)
- # clojure-dev (34)
- # clojure-europe (13)
- # clojure-gamedev (1)
- # clojure-norway (10)
- # clojure-uk (2)
- # clojurescript (24)
- # clr (1)
- # conjure (18)
- # cursive (4)
- # datalevin (3)
- # emacs (6)
- # graalvm (9)
- # graphql (1)
- # introduce-yourself (1)
- # malli (7)
- # nrepl (3)
- # portal (1)
- # quil (2)
- # reagent (1)
- # reitit (21)
- # releases (1)
- # reveal (11)
- # ring (2)
- # shadow-cljs (17)
- # sql (24)
- # vim (4)
I am using an npm module that has another npm dependency (Im not requiring this second one directly myself). In this transitory dep, the main
entry in the package.json of this module does not properly export the names, but the module
entry does. I would like to use this referred file in the build, but I'm wary of converting the entire build to :entry-keys ["module" "browser" "main"]
. Is there a way to overide the entry key for one particular module? What is the best approach in a situation like this? Can I tell shadow somehow to use this specific entry point for that package?
did you try building with module first? I mean if it works then that is the best path
otherwise you can use https://shadow-cljs.github.io/docs/UsersGuide.html#js-resolve
in an ideal world, would module be first (and it's just not first by default because of legacy npm modules?)
> otherwise you can use https://shadow-cljs.github.io/docs/UsersGuide.html#js-resolve Ah fantastic. I hoped there would be some kind of hook like this.
$ shadow-cljs watch app
com/google/javascript/jscomp/CompilerOptions has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
Getting this error when following the quickstart for shadow-cljs projects.
$ java -version
openjdk version "1.8.0_292"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_292-b10)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.292-b10, mixed mode)
The shadow-cljs docs specify version 8 of java, I believetechnically shadow-cljs would still be fine with java8, but the closure compiler started requiring java11 so we inherit that.
Thanks for the quick response
Every now and then, I encounter this error in our CLJS CI tests (in github actions):
File: /home/runner/work/nosco-gamma/nosco-gamma/cljs/nosco/ui/animations.cljs
invalid cljs source type
{:resource-id [:shadow.build.classpath/resource "nosco/ui/animations.cljs"], :resource-name "nosco/ui/animations.cljs", :source #object["[B" 0x27e3b83f "[B@27e3b83f"]}
It is always with this file, and it is intermittent (a re-run will proceed normally). Is there anywhere I could look to stop it?weird. not sure how it would get a byte array there. :source
is supposed to be a string
its all slurp
or restored from transit json cache. so dunno how you make it return a byte array instead