pmndrs / lamina

🍰 An extensible, layer based shader material for ThreeJS
MIT License
1.01k stars 41 forks source link

Module not found: Can't resolve 'react-dom/client' #21

Closed bramses closed 2 years ago

bramses commented 2 years ago

On NextJS

info  - automatically enabled Fast Refresh for 1 custom loader
wait  - compiling /_error (client and server)...
error - ./node_modules/lamina/index.js:12:0
Module not found: Can't resolve 'react-dom/client

package.json

"dependencies": {
 ...
    "lamina": "^1.1.9",
    "react": "17.0.2",
    "react-dom": "17.0.2",
...
  },

Thanks for any input!

FarazzShaikh commented 2 years ago

The latest patches >=1.1.9 are meant to work with React 18. Please update to react 18 or downgrade lamina to <=1.1.8

Let me know if that works

bramses commented 2 years ago

That seems to have done the trick --thank you @FarazzShaikh!

FarazzShaikh commented 2 years ago

Cheers!