This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-07
Channels
- # adventofcode (62)
- # babashka (88)
- # beginners (52)
- # boot (2)
- # bristol-clojurians (1)
- # calva (7)
- # cider (16)
- # circleci (4)
- # clj-kondo (12)
- # cljdoc (5)
- # cljsrn (4)
- # clojure (53)
- # clojure-dev (1)
- # clojure-spec (7)
- # clojure-uk (7)
- # clojurescript (25)
- # core-async (14)
- # duct (1)
- # emacs (10)
- # figwheel-main (3)
- # fulcro (11)
- # garden (14)
- # jobs (1)
- # klipse (2)
- # luminus (1)
- # malli (9)
- # re-frame (6)
- # reagent (13)
- # remote-jobs (1)
- # shadow-cljs (124)
- # sql (1)
- # testing (15)
- # tools-deps (13)
- # uncomplicate (1)
- # vim (1)
Hello, I have a problem with an npm dependency. I followed the tutorial and from what I can see, I have a valid index.bundle.js file in the right location. I tried the explicit :foreign-libs
and the automatic :npm
method. The first gives me an IOException
saying the file could not be found, the latter says Could not Find Namespace
. My :npm
config is
^{:npm {:bundles {"resources/public/js/index.bundle.js" "src/js/index.js"}}}
and :foreign-libs
:foreign-libs [{:file "resources/public/js/index.bundle.js"
:provides ["pitchfinder"]
:global-exports {pitchfinder PitchFinder}}
Obviously I'm making a very obvious, stupid mistake, but I'm too blind to see it.I figured it out. Needed to use import rather than require.
I correct myself, I din't solve it, the error message just disappeared. Now it only shows in the repl window.