Fork me on GitHub

Hi everyone! Any recommended Electron libraries for Clojurescript? I’m thinking about:


Hi first day playing with clojurescript. I am trying to load a canvas library konva using :npm-deps.. if i try to require the package it errors with base.js:1357 Uncaught Error: Undefined nameToPath for konva


however.. if i use a different library like moment it seems to work fine.. What am i missing?


@jdkida npm-deps is alpha quality, it doesn’t handle every possible JS modules format, not recommended to use


if you want interop with NPM consider shadow-cljs as a build tool


ok, what do you recommend for using third party libs from npm?


@jdkida I think they recommend this nowadays: if you want to use deps from NPM.


hm. I’m trying to use the goog.reflect namespace in a macro, using the common 2-namespaces method where I have a cljs file that requires a clj file which contains macros, and the cljs file requires all the namespaces used by the macros, including goog-reflect. However, I am getting compile warnings,

WARNING: No such namespace: goog.reflect, could not locate goog/reflect.cljs, goog/reflect.cljc, or JavaScript source providing "goog.reflect" at line 4 /projects/cljs-test/src/reflect/other.cljs
WARNING: Use of undeclared Var goog.reflect/objectProperty at line 4 /projects/cljs-test/src/reflect/other.cljs
I have double-checked that goog.reflect is required where it’s supposed to, and verified that if I swap out goog.reflect for goog.object and keep everything else the same, I don’t get warnings… so it seems like this is something specific to goog.reflect. Minimal repro:


FWIW I can avoid the warnings by using js/goog.reflect.getProperty instead