bfanger / svelte-preprocess-react

Seamlessly use React components inside a Svelte app
MIT License
126 stars 6 forks source link

cannot find module 'react-dom/client' #29

Closed ctwhome closed 1 year ago

ctwhome commented 1 year ago

Using the example:

<script>
  import YouTube from "react-youtube";
</script>

<react:YouTube videoId="AdNJ3fydeao" />

it returns cannot find module 'react-dom/client'. I am using sveltekit latest

bfanger commented 1 year ago

Did you install react-dom and if so which version?

ctwhome commented 1 year ago

you are right. also needed to install just react

ctwhome commented 1 year ago

I am trying to add excalidraw to sveltekit? did you have any success with it?