prevwong / craft.js

🚀 A React Framework for building extensible drag and drop page editors
https://craft.js.org
MIT License
7.64k stars 743 forks source link

Basic demo does not work with react 18 because of dependencies (MaterialUI) #524

Open pgibler opened 1 year ago

pgibler commented 1 year ago

I've spent the past couple days trying to reconfigure the "basic" example into something that will work with React 18. My project uses React 18 and the current version of MaterialUI does not work with it.

I'm sure I will eventually get this working... but it would have been so much nicer to just be able to checkout and run the project instead of going through this. Requiring MaterialUI (and react-contenteditable, for that matter) just makes the basic demo not work unless those libraries are properly upgraded to the latest React as well.

Ideally, the "basic" demo should just work out of the box and have no dependencies other than @craftjs/core.

jonny-mitts commented 1 year ago

Did you ever get this working? I am close, but there seems to be an issue with the Layers package.

TypeError: Cannot read properties of null (reading 'derive')

Let me know if you got it fixed.

JinSooo commented 11 months ago

TypeError: Cannot read properties of null (reading 'derive')

I met the same problem, how to resolve it