This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-28
Channels
- # announcements (1)
- # beginners (205)
- # calva (30)
- # cider (5)
- # cljdoc (25)
- # cljs-dev (2)
- # clojure (119)
- # clojure-brasil (5)
- # clojure-conj (7)
- # clojure-europe (2)
- # clojure-hamburg (7)
- # clojure-italy (14)
- # clojure-nl (2)
- # clojure-russia (13)
- # clojure-spec (79)
- # clojure-uk (58)
- # clojurescript (54)
- # core-logic (2)
- # core-matrix (2)
- # cursive (40)
- # datascript (2)
- # datomic (18)
- # duct (2)
- # emacs (14)
- # figwheel (3)
- # figwheel-main (7)
- # fulcro (30)
- # funcool (1)
- # graphql (10)
- # jobs (1)
- # juxt (13)
- # lumo (1)
- # mount (1)
- # off-topic (56)
- # other-languages (2)
- # pedestal (17)
- # powderkeg (2)
- # protorepl (2)
- # re-frame (10)
- # reagent (1)
- # reitit (7)
- # ring-swagger (10)
- # schema (2)
- # shadow-cljs (70)
- # spacemacs (13)
- # specter (4)
- # sql (9)
- # tools-deps (26)
when I run shadow-cljs
with jvm11
it says Warning: Nashorn engine is planned to be removed from a future JDK release
Is it a know issue?
https://jaxenter.com/graalvm-nashorn-interview-147115.html this might give you a hint
and that https://docs.oracle.com/en/java/javase/11/docs/api/jdk.scripting.nashorn/module-summary.html
Can't compile https://github.com/funcool/decimal with shadow-cljs
The error is The required namespace "decimal.extern.decimaljs" is not available, it was required by "decimal/core.cljs".
https://github.com/thheller/shadow-cljsjs/blob/master/src/main/cuerdas/vendor/xregexp.cljs
(ns decimal.extern.decimaljs (:require ["decimal.js" :as dec])) (js/goog.exportSymbol "something" dec)
happy to add it to https://github.com/thheller/shadow-cljsjs
Do I understand correctly from this https://shadow-cljs.github.io/docs/UsersGuide.html#_requiring_js that I can use the decimal.js
file, packaged inside [funcool/decimal]
jar instead of installing it from npm?
But Absolute requires like /some-library/components/foo mean that the compiler will look for a some-library/components/foo.js on the classpath;
JS from the classpath is actually fully processed so you typically only want to do it for you own sources
Got another one š
File: ...
failed to require macro-ns "clojure.core.strint", it was required by "..."
FileNotFoundException: Could not locate clojure/core/strint__init.class or clojure/core/strint.clj on classpath.
Which repl are you in?
In a specific build-id?
Browser?
you can (require '[some.ns :as x])
as normal but load-file
is limited to files in your :source-paths
hi everyone. Iām trying to use firebase
npm module with my app and Iām having issues importing things from the module. for example, when I try to
(:require ["firebase/database" :as database])
it comes up as an empty objectbut some things work, like for example if I do
(:require ["firebase/app" :as firebase])
@bravilogy is this for nodejs or browser?
you probably want ["firebase/database"]
instead, and initialize with (def database (.firestore firebase))
or something like that, I have a really old firebase library here: https://github.com/degree9/firebase-cljs see how things are initialized