This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-06
Channels
- # aleph (70)
- # announcements (9)
- # babashka (43)
- # babashka-sci-dev (6)
- # beginners (97)
- # cider (2)
- # clj-commons (3)
- # clj-kondo (41)
- # clojure (88)
- # clojure-europe (44)
- # clojure-nl (2)
- # clojure-spec (22)
- # clojurescript (65)
- # community-development (6)
- # conjure (10)
- # cursive (6)
- # datahike (13)
- # datomic (4)
- # eastwood (11)
- # events (1)
- # fulcro (45)
- # graalvm (1)
- # graphql (3)
- # hyperfiddle (3)
- # integrant (7)
- # jobs (1)
- # lambdaisland (1)
- # lsp (58)
- # nbb (4)
- # nrepl (3)
- # pathom (15)
- # shadow-cljs (27)
- # tools-deps (1)
Hmh. Seems like shadow 2.19.9 (i.e. 2.19.8 still works) stopped redirecting to index.html when going to localhost:8000, as configured for the dev server, if proxy-url is also configured. Nothing jumps to my eyes from the changelog, but have to bisect the commits then.
I suppose the bump to undertow could do it? But I can't even see version 0.3.0 at https://github.com/thheller/shadow-undertow
The special case of checking for index.html when client is getting just the directory is still working, as long as proxy-url isn't defined and up to 2.19.8, even when it is
ah hmm, yeah thats probably this one https://github.com/thheller/shadow-undertow/commit/a64b4afa1ab39931b17742492f06480c38e5911f
so :use-index-files true
should work, :dev-http {3000 {:root "public" :use-index-files true :proxy-url ...}}
that is
Hello, I am seeing an error when trying to consume https://ffmpegwasm.netlify.app/ in a front-end build:
Closure compilation failed with 4 errors
--- node_modules/@ffmpeg/ffmpeg/src/browser/defaultOptions.js:17
This code cannot be transpiled. import.meta. Use --chunk_output_type=ES_MODULES to allow passthrough support.
--- node_modules/@ffmpeg/ffmpeg/src/browser/fetchFile.js:43
This code cannot be transpiled. import.meta. Use --chunk_output_type=ES_MODULES to allow passthrough support.
--- node_modules/@ffmpeg/ffmpeg/src/browser/getCreateFFmpegCore.js:44
This code cannot be transpiled. import.meta. Use --chunk_output_type=ES_MODULES to allow passthrough support.
--- node_modules/@ffmpeg/ffmpeg/src/browser/getCreateFFmpegCore.js:80
This code cannot be transpiled. import.meta. Use --chunk_output_type=ES_MODULES to allow passthrough support.
I tried tinkering with :output-feature-set
but it doesn't seem to help.Is there a way to set the chunk_output_type
flag on the Closure pass?
I have managed to get around this issue by using the pre-compiled dist artifact instead:
["@ffmpeg/ffmpeg/dist/ffmpeg.min" :refer [createFFmpeg fetchFile]]
there is no setting that would influence this currently. the error message only refers to the google-closure-compiler npm package option, it is not an option in shadow-cljs
I have this ["react-bootstrap/Card$default" :as card]
in my require form and I see the modules being loaded in the console but I can't figure out how to use it correctly. When I call it like a function I get a use of undeclared var warning and nothing else
Right, but how does that translation to CLJS get made?
see my answer here https://stackoverflow.com/a/72196457/8009006
I tried this out and I see this logged in the console:
Card {$$typeof: Symbol(react.forward_ref), defaultProps: {…}, Img: {…}, Title: {…}, render: ƒ, …}$$typeof: Symbol(react.forward_ref)Body: {$$typeof: Symbol(react.forward_ref), defaultProps: undefined, render: ƒ}Footer: {$$typeof: Symbol(react.forward_ref), defaultProps: undefined, render: ƒ}Header: {$$typeof: Symbol(react.forward_ref), render: ƒ}Img: {$$typeof: Symbol(react.forward_ref), render: ƒ}ImgOverlay: {$$typeof: Symbol(react.forward_ref), defaultProps: undefined, render: ƒ}Link: {$$typeof: Symbol(react.forward_ref), defaultProps: undefined, render: ƒ}Subtitle: {$$typeof: Symbol(react.forward_ref), defaultProps: undefined, render: ƒ}Text: {$$typeof: Symbol(react.forward_ref), defaultProps: undefined, render: ƒ}Title: {$$typeof: Symbol(react.forward_ref), defaultProps: undefined, render: ƒ}defaultProps: {body: false}render: ({bsPrefix,className,bg,text,border, body,children,as:Component="div",...props},ref)=> {…}displayName: (...)get displayName: ƒ ()arguments: nullcaller: nulllength: 0name: "get"prototype: {constructor: ƒ}[[FunctionLocation]]: react.development.js:1497[[Prototype]]: ƒ ()[[Scopes]]: Scopes[4]set displayName: ƒ (name)[[Prototype]]: Object
so it seems to be imported correctly but I still get those undefined var warnings on invocation.Reagent. Should I use their create-react-class
function here? I tried what the original SO thread showed, i.e.
[:div
[:> Card
[:> Card.Body]]]
etc, but I suspect that's also wrong["react-bootstrap/Card" :as Card]
(js/console.log "Card" Card)