This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-18
Channels
- # announcements (8)
- # aws (5)
- # babashka (69)
- # beginners (37)
- # calva (222)
- # cider (10)
- # clj-commons (8)
- # clj-kondo (69)
- # cljdoc (5)
- # clojure (62)
- # clojure-dev (23)
- # clojure-europe (37)
- # clojure-italy (2)
- # clojure-nl (6)
- # clojure-sg (6)
- # clojure-uk (5)
- # clojurescript (25)
- # clojureverse-ops (12)
- # conjure (1)
- # cursive (1)
- # fulcro (9)
- # gorilla (1)
- # graalvm (6)
- # graphql (1)
- # gratitude (1)
- # honeysql (7)
- # introduce-yourself (4)
- # jobs (1)
- # kaocha (9)
- # keyboards (4)
- # leiningen (8)
- # lsp (21)
- # malli (9)
- # music (3)
- # nextjournal (17)
- # nrepl (6)
- # off-topic (10)
- # pathom (12)
- # portal (25)
- # reagent (8)
- # releases (1)
- # specter (1)
- # xtdb (1)
Hey everyone, I am trying to use js interopt to make use of StorybookJS. I need to have export {default} from './storybook';
in my entry point of my app which is essentially index.cljs
. How can I go about doing this?
@krishanvj Did you see this example project? https://github.com/DavidVujic/clojurescript-amplified
The components were written in cljs and not js/ts though. Not quite what I was looking for but thanks!
A package I'm attempting to use has it's js transpiled to file names with a cjs extension. I get an error message around failing to locate source (note it exists in node_modules). When I move the output of the node_module to a .js file extension it succeeds and compiles. Is there a way to configure the CLJS compiler to also search for files with .cjs extension?
Really it's all codemirror packages that are causing the issue for me (they're setup to compile to cjs files which they use as the main entry point).
I could always fork and alter it to compile to js extension but that will lead to a lot of headaches.
FWIW it does have index.js
, but it's mentioned under "module"
in package.json
and not "main"
.
Yea it does compile to an index.js file but CLJS is by default searching for the "main".
A couple of quick questions. 1. Can I query XTDB from a Clojurescript web app? 2. Any recommendations for a simple react wrapper in cljs? I just need something that isn't obfuscating away a ton of decisions for me. I like re-frame, but I really want to able to fully understand whatever libs I'm using right now. I'd rather sacrifice some niceness for simplicity.
XT's HTTP API isn't intended for direct usage from a web front-end, but it can be achieved and used at least for prototyping - e.g. see https://github.com/wkok/re-frame-crux
I think https://github.com/lilactown/helix is usually recommended as a simple react wrapper in cljs.
Nice, looks perfect for my needs! Thank you. Do you happen to know of any similarly simple libraries for backend web services?
What kind of backend web services? What kind of simple are you looking for?
in addition to here on slack
In the most simple form I'm just trying to build a web app that can persist data and use the kind of xtdb/datascript datalog ideas across the stack. For now I don't care about auth/security at all, I'm just trying to build a local tool for myself and need persistence.
Unfortunately, nothing comes to mind