lilactown / helix

A simple, easy to use library for React development in ClojureScript.
Eclipse Public License 2.0
624 stars 52 forks source link

No dependency named react-dom/client #108

Closed bhlieberman closed 1 year ago

bhlieberman commented 1 year ago

I am following along with the minimal example in the README. I have installed react-dom using npm install react-dom. But when I evaluate any namespace that requires it like

(ns foo
(:require ["react-dom/client" :as rdom]))

I receive this error:

The required JS dependency "react-dom/client" is not available, it was required by "app/core.cljs".

I started my project using npx create-cljs-app and I am running Windows 11 and the Eclipse JDK. (I was using WSL but was having issues with hot reloading both JS and CLJS projects so I've started running the watch on Windows.)

lilactown commented 1 year ago

What version of React are you using?

bhlieberman commented 1 year ago

16.8.0. I'm guessing I should update

lilactown commented 1 year ago

Yeah, react-dom/client is new in React 18. Upgrading to that should fix the issue.