Fork me on GitHub
Karan Ahlawat05:06:37

Hello, I'm trying to create a shadow-cljs project with it's dependencies listed in deps.edn. The problem I'm running into is that shadow-cljs does not find react and react-dom as deps for reagent, if I specify them in the deps.edn file. It only works if I have them installed into a node_modules folder. Ideally I'd just like to eliminate the usage of npm, and have all my deps specified in deps.edn.


@ahlawatkaran14 JS dependencies cannot be specified in deps.edn and you need npm for them.

Karan Ahlawat05:06:48

So there's no way at all? Unfortunate, but that's life I suppose


you don't even specify JS dependencies in shadow-cljs.edn when using only that. they always go in package.json and are managed by npm or yarn

Karan Ahlawat05:06:33

Ah, okay. I read on the reagent website that you could specify cljsjs/react and react-dom, so I thought it was possible. Maybe that was for other options than shadow-cljs


shadow-cljs does not support cljsjs packages so those don't work

Karan Ahlawat05:06:46

Aha! Fair enough. Thanks for replying, I was really stumped. Now to figure out a good REPL workflow.