This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-25
Channels
- # announcements (9)
- # babashka (38)
- # beginners (41)
- # biff (1)
- # clojure (19)
- # clojure-europe (7)
- # clojure-uk (2)
- # clojurescript (3)
- # code-reviews (30)
- # conjure (4)
- # cursive (8)
- # datomic (32)
- # docker (2)
- # emacs (7)
- # etaoin (2)
- # fulcro (37)
- # graphql (2)
- # jobs (1)
- # jobs-discuss (8)
- # leiningen (10)
- # lsp (36)
- # meander (4)
- # missionary (4)
- # nbb (12)
- # off-topic (1)
- # other-languages (10)
- # pathom (11)
- # re-frame (5)
- # reitit (4)
- # remote-jobs (3)
- # shadow-cljs (13)
- # sql (1)
- # tools-build (4)
- # tools-deps (31)
- # xtdb (2)
👋 Hello. Does shadow do some kind of caching on required npm modules per build? When I update some code in the node_modules (via npm link and a local project) I need to restart my build to see the changes.
yes, it does. you can touch package.json
in the node_modules
package to make it reload
thanks, will check it out
🤷 doesn;t seem to work for us. Maybe some added caveats because of the symlinking we're doing. Or some repl stickyness
Hi! I'm trying to load up apache-arrow 8.0.0 and shadow-cljs complains about the following:
Caused by:
IllegalStateException: Expected a property access: OBJECT_PATTERN 120:25 [length: 13] [source_file: node_modules/apache-arrow/io/adapters.js]
STRING_KEY cmd 120:27 [length: 3] [source_file: node_modules/apache-arrow/io/adapters.js] [is_shorthand_property: 1]
NAME cmd$jscomp$1 120:27 [length: 3] [source_file: node_modules/apache-arrow/io/adapters.js] [original_name: cmd]
STRING_KEY size 120:32 [length: 4] [source_file: node_modules/apache-arrow/io/adapters.js] [is_shorthand_property: 1]
NAME size$jscomp$23 120:32 [length: 4] [source_file: node_modules/apache-arrow/io/adapters.js] [original_name: size]
Is this a JS "target" issue e.g. es2015 vs esnext or something? I see there are multiple target packages published in https://www.npmjs.com/package/apache-arrow but I'm unsure which one I'd want...
I have my shadow-cljs build configured with :output-feature-set :es6
Thanks!@hjrnunes that is an error from the closure compiler. can't say anything more about that either. maybe it is something it doesn't like. isn't this meant for node? are you trying to use it in a browser build?
seems to be polyfill related, so :compiler-options {:output-feature-set :es-next}
should maybe make it go away?
the code is using generator functions. could be a problem in how closure rewrites those
@thheller Yes, it's a browser build. I was under the impression this should support the browser too, but I'll double check. I'll update the compiler too, just in case. Thanks!
unfortunately if the language level doesn't fix it the only option is going with webpack instead as desribed here https://code.thheller.com/blog/shadow-cljs/2020/05/08/how-about-webpack-now.html#option-2-js-provider-external