Fork me on GitHub
#figwheel-main
<
2018-12-27
>
farzana05:12:52

hello my figwheel repl prompt not comming back, it worked way it is, yesterday. but today it is not working. I didn't change my configuration

farzana05:12:58

also i am getting [Violation] Avoid using document.write().

farzana05:12:14

[Violation] Parser was blocked due to document.write(<script>)

kah0ona11:12:42

Hello people, I am a bit confused. So I use CIDER, and leiningen in a project currently. Trying to migrate to figwheel-main, but not sure if that is a sensible thing to do. - I am at the latest CIDER version - Do I need figwheel-sidecar still? or is that old fashioned - I just want to jack-in clojurescript, will that work as before? Asking because I want to prevent going too deep in a dead end street. Or should i get rid of leiningen altogether to work with Figwheel Main?

kah0ona13:12:53

Aah I got it working almost. 🙂 To answer my own question: it’s totally possible.

kwladyka21:12:52

[Figwheel] Compile Warning   target/public/cljs-out/dev/clojure/test/check/generators.cljc   line:999  column:15

  cljs.core/<=, all arguments must be numbers, got [#{nil js/Number} number] instead

   994                   ubexp (max -1023 (get-exponent upper-bound))]
   995          (cond (<= 0.0 lower-bound)
   996                (tuple (gen-exp lbexp ubexp)
   997                       (return 1.0))
   998
   999                (<= upper-bound 0.0)
                      ^---
  1000                (tuple (gen-exp ubexp lbexp)
  1001                       (return -1.0))
  1002
  1003                :else
  1004                (fmap (fn [[exp sign :as pair]]

Dec 27, 2018 8:58:41 PM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: target/public/cljs-out/dev/inferred_externs.js:1: WARNING - name goog is not defined in the externs.
goog.DEBUG;
^^^^

Dec 27, 2018 8:58:41 PM com.google.javascript.jscomp.LoggerErrorManager printSummary
WARNING: 0 error(s), 1 warning(s)
[Figwheel] Successfully compiled build dev to "target/public/cljs-out/dev-main.js" in 22.179 seconds.
Why this goog.DEBUG warning when ["-m" "figwheel.main" "-O" "advanced" "-bo" "dev"]? Is it intention do be like that? I don’t have this issue with ["-m" "figwheel.main" "-b" "dev" "-r"].

bhauman21:12:17

so this isn’t a figwheel issue, its just that goog doesn’t exist when you use advanced compilation mode

kwladyka21:12:14

Is it not about {:npm {:bundles {"dist/index_bundle.js" "src/js/index.js"}}} ?

bhauman21:12:52

that does set :infer-externs to true

kwladyka21:12:56

Why goog.DEBUG is in inferred_externs.js?

kwladyka21:12:22

fair enough 🙂

kwladyka21:12:06

@bhauman I can be wrong but I remember there was a place with examples of figwheel-main projects. Where is it? I would love to add there https://github.com/kwladyka/form-validator-cljs/tree/doc as example of using {:npm {:bundles {"dist/index_bundle.js" "src/js/index.js"}}} and clj in project. Of course if you agree the example is worthy 🙂

kwladyka21:12:21

I really like figwheel-main with clj

bhauman22:12:40

@kwladyka I’m not aware of such a place 🙂

kwladyka22:12:27

hmm my mistake then