This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-18
Channels
- # announcements (1)
- # babashka (8)
- # beginners (20)
- # calva (2)
- # clara (17)
- # cljsrn (7)
- # clojure (45)
- # clojure-australia (1)
- # clojure-europe (5)
- # clojure-spec (7)
- # clojure-uk (2)
- # clojurescript (30)
- # cursive (3)
- # data-science (1)
- # datomic (2)
- # emacs (9)
- # events (2)
- # figwheel-main (1)
- # fulcro (4)
- # luminus (2)
- # malli (2)
- # pathom (10)
- # re-frame (44)
- # reagent (5)
- # reitit (4)
- # remote-jobs (1)
- # rum (1)
- # sci (2)
- # uncomplicate (2)
- # xtdb (21)
hey folks, I'm having issues trying to get NPM modules working with webpack. I've followed the instructions from https://figwheel.org/docs/npm.html and this is what I got:
2020-10-18 14:21:10.500:INFO::main: Logging initialized @2956ms to org.eclipse.jetty.util.log.StdErrLog
[Figwheel] Validating figwheel-main.edn
[Figwheel] figwheel-main.edn is valid \(ツ)/
[Figwheel] Compiling build dev to "resources/public/cljs-out/dev/main.js"
[Figwheel] Successfully compiled build dev to "resources/public/cljs-out/dev/main.js" in 8.716 seconds.
[Figwheel] Bundling: npx webpack --mode=development resources/public/cljs-out/dev/main.js -o resources/public/cljs-out/dev/main_bundle.js
[Figwheel:SEVERE] Bundling command failed
asset main.js 644 bytes [compared for emit] (name: main)
ERROR in main
Module not found: Error: Can't resolve 'resources/public/cljs-out/dev/main.js' in '/home/wcalderipe/dev/lab-figwheel'
webpack 5.1.3 compiled with 1 error in 58 ms
using [com.bhauman/figwheel-main "0.2.11"]
, and the dev.cljs.edn
looks like:
^{:auto-bundle :webpack
:watch-dirs ["test" "src"]
:css-dirs ["resources/public/css"]
:auto-testing true
:extra-main-files {:cards {:main lab-figwheel.cards}}}
{:main lab-figwheel.core
:devcards true}