This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-06
Channels
- # announcements (1)
- # atom-editor (2)
- # babashka (6)
- # beginners (30)
- # calva (12)
- # chlorine-clover (2)
- # clojure (88)
- # clojure-australia (2)
- # clojure-europe (9)
- # clojure-germany (4)
- # conjure (3)
- # cursive (12)
- # datomic (4)
- # lsp (86)
- # off-topic (48)
- # play-clj (8)
- # polylith (6)
- # reagent (11)
- # reitit (8)
- # shadow-cljs (19)
- # specter (6)
- # sql (13)
- # xtdb (25)
Quick question - what is the "correct" way to package up a library with node dependencies? I've tried adding the list of them to deps.cljs
in src, but including the dependency from clojars in a shadow project elsewhere didn't seem to install them.
how did you package it? I mean is the deps.cljs
file actually included with the jar? what is the clojars lib?
Ooo it doesn't look like it is in the jar
And does it go in the root of the project or next to the source, I wasn't quite sure
Ah I see, I think I put it too deep the first time I tried
Could somebody help to test this repo? https://github.com/damesek/example-error I created from this, and still not work on my computer, but there is a screenshot too that is works. From here: https://stackoverflow.com/questions/58852849/clojurescript-date-timepicker-with-cljsjs-react-day-picker. I got this react.development.js:316 Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
I think, that is a same issue at all packages.. as I feel. I canβt find out, maybe very trivial.. π
read and understand the translation table here https://shadow-cljs.github.io/docs/UsersGuide.html#_using_npm_packages