This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-29
Channels
- # aws (16)
- # beginners (14)
- # boulder-clojurians (1)
- # braveandtrue (184)
- # cider (9)
- # cljs-dev (17)
- # cljsrn (10)
- # clojure (70)
- # clojure-austin (16)
- # clojure-finland (2)
- # clojure-germany (4)
- # clojure-italy (6)
- # clojure-nl (6)
- # clojure-sanfrancisco (2)
- # clojure-spec (5)
- # clojure-uk (60)
- # clojurescript (82)
- # cursive (1)
- # data-science (1)
- # datomic (13)
- # defnpodcast (1)
- # docker (82)
- # figwheel-main (18)
- # fulcro (51)
- # funcool (6)
- # jobs (13)
- # jobs-discuss (5)
- # jobs-rus (7)
- # juxt (2)
- # leiningen (4)
- # lumo (5)
- # mount (1)
- # off-topic (38)
- # pedestal (9)
- # re-frame (13)
- # reagent (16)
- # shadow-cljs (70)
- # spacemacs (5)
- # specter (9)
- # sql (8)
- # tools-deps (2)
- # vim (6)
(:require [clj-macros :refer [slurp]]
["web3" :as web3])
cause
The required namespace "clj-macros" is not available
While I have this file /src/clj_macros.clj
which is (ns clj-macros … )
Why?I found your example https://github.com/shadow-cljs/examples/blob/master/macros/src/app/lib.cljs
@thheller Im getting weird errors using 2.6.4
SHADOW import error /Users/matt/Projects/cannabit/cannabit-pharma/app/cljs-runtime/app.server.js
/Users/matt/Projects/cannabit/cannabit-pharma/app/cljs-runtime/goog.object.object.js:427
if (obj !== null && key in obj) {
^
TypeError: Cannot use 'in' operator to search for 'path' in undefined
compiled without errors
I’m trying to use materialize css in a clojurescript app with shadow-cljs, I’ve already added the dependency, but I’m missing a step to actually use it in the dom
@flyboarder did this work in previous versions? that looks to me like node is complaining about something?
@pvillegas12 shadow-cljs has no support for compiling any css. so whatever you need to do you need to do it manually
@thheller you mean adding a style tag directly to the index.html? Where in the file system do npm dependencies store the css?
materialize css, but I guess the question is more general, in a clojurescript app after getting an npm dependency how do I include the js/css?
@thheller yeah it all worked previously
@thheller shadow-cljs check
returns warnings about cljs 1.10
@thheller im not sure what the previous version was, I had used npm
I’m digging more….
maybe I can figure something out if you show me some errors but right now I'm just clueless
@thheller sorry, here is a couple examples
@thheller I also see a bunch of these:
------ WARNING #33 -------------------------------------------------------------
File: ~/.m2/repository/degree9/featherscript/0.4.0-SNAPSHOT/featherscript-0.4.0-SNAPSHOT.jar!/feathers/channels.cljs:8:7
Property on never defined on app
--------------------------------------------------------------------------------
In this case app
is a symbol for a runtime object
Actually I think all the errors involve runtime objects
@thheller for the last error above
(defn connection [app listener]
(.on app "connection" listener))
^ how should I fix this?
express server
well feathersJS server
ah ok
hmm I get the check warnings in cljs.core as well. maybe the recent closure update changed something
I am using boot and npm
I thought infer-externs was for release builds?
I have been testing with shadow-cljs compile server
which compiles without issues
errors on runtime
and you are sure that you are calling things correctly? I mean you didn't make a change and pass an undefined value somewhere?
no everything was working 2 weeks ago when I last compiled the project
(defn authentication [^js app]
(let [conf (obj/get app "auth")
path (obj/get conf "path")
app (auth/configure app conf)]
(auth/service app path)))
^this is the authentication function
and I can (prn app)
oh when you upgraded shadow-cljs
did you maybe upgrade all your other npm
deps as well?
possibly
looks like “2.4.17” was the last version I was using
can't see a reason why that code would work in 2.4.17
but not 2.6.4
so I'm putting my money on other updated npm deps which broke stuff
@thheller have you seen this yet? java.lang.ClassNotFoundException: com.google.javascript.jscomp.CompilerInput$ModuleType
when using shadow-cljs as a library
so I blew away the .m2 directory and its still showing up