figwheel-main

figwheel-main http://figwheel.org
Philipp Siegmantel 2019-12-07T07:07:30.049300Z

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.

Philipp Siegmantel 2019-12-07T10:19:51.049400Z

I figured it out. Needed to use import rather than require.

Philipp Siegmantel 2019-12-07T10:27:58.049600Z

I correct myself, I din't solve it, the error message just disappeared. Now it only shows in the repl window.

Philipp Siegmantel 2019-12-07T10:19:51.049400Z

I figured it out. Needed to use import rather than require.

Philipp Siegmantel 2019-12-07T10:27:58.049600Z

I correct myself, I din't solve it, the error message just disappeared. Now it only shows in the repl window.