This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-08
Channels
- # aleph (9)
- # announcements (42)
- # babashka (13)
- # babashka-sci-dev (9)
- # beginners (38)
- # biff (1)
- # calva (4)
- # cider (5)
- # clj-kondo (39)
- # cljdoc (4)
- # cljsrn (3)
- # clojure (93)
- # clojure-bay-area (1)
- # clojure-czech (1)
- # clojure-dev (4)
- # clojure-europe (65)
- # clojure-finland (3)
- # clojure-nl (2)
- # clojure-norway (7)
- # clojure-portugal (1)
- # clojure-uk (2)
- # clojurescript (73)
- # cloverage (1)
- # cursive (5)
- # data-science (1)
- # datahike (22)
- # emacs (51)
- # graalvm (6)
- # introduce-yourself (8)
- # jobs-discuss (14)
- # kaocha (6)
- # mount (5)
- # nbb (19)
- # off-topic (19)
- # reagent (5)
- # releases (1)
- # sci (19)
- # scittle (4)
- # shadow-cljs (6)
- # tools-deps (9)
- # xtdb (2)
Hey, when trying to import a javascript library I get the following error: Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/harellidar/Documents/Work/product-and-marketing/delivery-page/node_modules/capture-website/index.js from /Users/harellidar/Documents/Work/product-and-marketing/delivery-page/dist/spiritt/delivery-page.cjs not supported. Instead change the require of index.js in /Users/harellidar/Documents/Work/product-and-marketing/delivery-page/dist/spiritt/delivery-page.cjs to a dynamic import() which is available in all CommonJS modules. Does anyone know how to solve this issue?
sorry, on my way out. easy error to google. basically node cannot import ES module code from commonjs. you can maybe switch your build to use :target :esm
, see docs.
Tried changing target to esm and runtime to node and now im getting: The required JS dependency "node:process" is not available Any help with this?
for node you want to set this https://shadow-cljs.github.io/docs/UsersGuide.html#_third_party_tool_integration