This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-08
Channels
- # announcements (1)
- # asami (4)
- # babashka (5)
- # biff (9)
- # calva (26)
- # cider (4)
- # clojure (23)
- # clojure-art (6)
- # clojure-europe (5)
- # clojure-japan (1)
- # clojure-norway (1)
- # clojurescript (11)
- # datomic (7)
- # emacs (26)
- # hoplon (3)
- # hyperfiddle (1)
- # inf-clojure (1)
- # introduce-yourself (5)
- # nyc (34)
- # podcasts-discuss (1)
- # releases (1)
- # shadow-cljs (9)
- # tools-deps (11)
I'm getting an error with a npm module I'm trying to use
This code cannot be transpiled. import.meta. Use --chunk_output_type=ES_MODULES to allow passthrough support.
Is there a way to pass this option to google closure? I believe this issue is the offending code is never actually called in a browser environment, but closure throws on it anyway.unfortunately no, the closure compiler is very picky about such things. can't do anything about that except using a different bundler https://shadow-cljs.github.io/docs/UsersGuide.html#js-provider-external
Okay thanks, looks like I'll have go that route. Is this the route you'd recommend if there's basically just one external library that I need?
Is there something weird about the way this library is structured that makes it not importable by shadow-cljs? https://github.com/ReactTooltip/react-tooltip
I get this error when building: The required JS dependency "react-tooltip" is not available, it was required by "demo.cljs".
Here is a simple repro build: https://github.com/mochi-cards/shadow-cljs--react-tooltip
yes, it only supports the module exports
specified in package.json, and has no fallback to the "old ways". shadow-cljs does not support that yet
Would providing a path into the package source tree work?