Thought I’d figured it out, but no luck, just giving me a list of npm modules to install and installing them doesn’t appear to create a valid build…
^{:final-output-to "resources/public/js/compiled/app.js"
:open-url false
:watch-dirs ["test" "src"]
:css-dirs ["resources/public/css"]}
{:main example.core
:target :bundle
:bundle-cmd {:default ["npx" "webpack" "--mode=production" :output-to "-o" :final-output-to]}
:output-dir "resources/public/js/compiled/"
:asset-path "/js/compiled/"
:source-map-timestamp true
:closure-defines {goog.DEBUG false}}
Couldn’t get further than here, perhaps someone will be more successful than me 😃…@folcon with the bundle target the bundler cant process the output-to if its not in output-dir
figwheel does add that message to save you
closure-defines needs `
:closure-defines {cljs.core/*global* "window"}}
`for advanced @folcon
@folcon the docs are not complete up to date yet, I’m still working on it
Hey! Great to hear from you! I actually tried this example repo from you https://github.com/PEZ/fresh-figwheel-main. I choose jack-in and selected :fig and :build, but then calva just stays in “trying to connect” mode.
Oh, I know what is going wrong. Let me add a thing to the README about it. brb
There, README updated. You'll see what tripped you up, I hope. I'm sorry about the inconvenience!
I would love to understand more of the source code, maybe you can point me in the direction where this is handled? And I don’t quite understand what role nrepl and piggieback plays.
Thank you for all you’ve done on it so far, it’s tons better =)…
Has someone tried figwheel-main 0.2.6 with vim-fireplace? I can connect with Piggieback but when trying to evaluate I'm getting Not supported: class figwheel.repl.FigwheelReplEnv$fn__16105
.
I'm also seeing this previously fixed problem reappear: https://github.com/bhauman/figwheel-main/issues/145
hmmm, I don’t think there was a regression here
oh but the latest clojurescript stopped passing output-to to the repl
I tried both the older clojurescript 1.10.597 and 1.10.773 with figwheel-main 0.2.6, in both cases the issue #145 seems to be present
OK yeah I’m looking at it, I don’t see the :output-dir in there hmmm
Yes this change got reverted!
I don’t know how, but …
OK I reverted it on purpose because it was causing the repl to hang on error somehow
@jkr.sw found the problem should have a fix out shortly
Excellent, thank you
@jkr.sw just deployed changes to 0.2.7-SNAPSHOT
0.2.7-SNAPSHOT also has :bundle-freq
which can either be :once
, :always
or :smart
which checks for changes to output-to or npm_deps.js
:bundle-once
is deprecated as :bundle-freq
is just a better name
I’d love to deploy 0.2.7 tomorrow as its the end of month 1 of the Clojurists Together Quarter
Just tried 0.2.7-SNAPSHOT, both the problems I had before are fixed 👍
Evaluations are showing #object[cider.piggieback.UnknownTaggedLiteral ...]
when returning eg. atom or a function, normally there should be eg.`#object[clojure.lang.Atom ...]`, but I guess that might not be a problem in figwheel-main
Never mind, found that documented in Piggieback: https://github.com/nrepl/piggieback/blob/master/README.md#pretty-printing
@jkr.sw thanks for reporting back!
Hey, @bhauman =)… I’ve updated the prior thread with the last attempts, and I’m around for a bit if you want me to test stuff.
@folcon here’s what I would try
first you don’t need an asset-path because its all bundled in one file