This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-03
Channels
- # beginners (167)
- # boot (22)
- # chestnut (3)
- # cider (9)
- # clojure (107)
- # clojure-berlin (1)
- # clojure-greece (3)
- # clojure-italy (6)
- # clojure-losangeles (6)
- # clojure-russia (8)
- # clojure-spec (71)
- # clojure-uk (42)
- # clojurescript (186)
- # community-development (1)
- # core-async (12)
- # core-typed (1)
- # css (15)
- # cursive (29)
- # data-science (11)
- # datomic (8)
- # defnpodcast (28)
- # duct (2)
- # fulcro (169)
- # graphql (6)
- # hoplon (3)
- # jobs-discuss (1)
- # kekkonen (5)
- # leiningen (11)
- # lumo (7)
- # off-topic (14)
- # om (1)
- # other-languages (14)
- # portkey (7)
- # re-frame (27)
- # reagent (14)
- # remote-jobs (1)
- # ring-swagger (5)
- # rum (15)
- # shadow-cljs (52)
- # spacemacs (59)
- # specter (78)
- # test-check (3)
- # vim (9)
- # yada (23)
as http://asp.net core only serves the wwwroot directory to the public
there should be a <output-dir>/cljs-runtime/module$node_modules$create_react_class$index.js
file
can you paste the first few lines of <output-dir>/cljs-runtime/reagent.impl.component.js
?
this works just fine https://mhuebert.github.io/shadow-re-frame/
https://github.com/reagent-project/reagent/blob/master/examples/simple/src/simpleexample/core.cljs
@eveko fixed in [email protected]
wonder how https://mhuebert.github.io/shadow-re-frame/ worked without running into that 😛
@mhuebert you have used (set! *warn-on-infer* true)
before. do you think it would be useful to always enable that for files with JS requires?
currently fixing it for shadow-cljs and removing a few false positives so it should be more reliable
@thheller I find these instructions (from https://clojurescript.org/guides/externs#externs-inference) a bit confusing:
However this alone isn't enough to have the compiler generate warnings around externs. Because of the large number of libraries written before this feature existed, we cannot enable this capability in a global way. Instead there is a new file local compiler flag *warn-on-infer* which is somewhat analogous to *warn-on-reflection* in Clojure. Once set the compiler will warn for the remainder of the file anytime it cannot determine the types involved in a dot form, whether property access or method invocation.
from that, I understood that somehow enabling :infer-externs
is not enough, and I also had to put *warn-on-infer*
in my files to enable the inference