Closed eschiebel closed 4 months ago
I also tried the pre-built tutorial at https://github.com/prevwong/craft.js/blob/main/examples/basic and
npm
and requires yarn
for the workspace featuresyarn build
fails with multiple Error: Unable to resolve path to module '@craftjs/core'
errors.EDIT: I got it to work using yarn build:all
from the root directory.
I got my version of the tutorial working by using the deprecated @material-ui/core
, though I do not understand why dnd does not work with @mui/material
or my company's UI component library.
I just created a demo with the latest version of @mui/material
and it seems to work fine: https://stackblitz.com/edit/stackblitz-starters-autnnk?file=app%2Fpage.tsx
I'm not sure what I did wrong last week, but I have it working now. Sorry for wasting your time.
Describe the bug I created the tutorial app and when I get to "At this point, you could refresh the page and you would be able to drag stuff around.", nothing drags, nothing gets the move cursor as shown in the animated image in the document.
To Reproduce
Expected behavior The app I created should work as described in the tutorial
Screenshots If applicable, add screenshots to help explain your problem.
Additional context
@material-ui/core
to@mui/material
since the former has been deprecated and cannot be installed.App
inpages/index.js
at the "putting it all together" point in the tutorial to what's at https://craft.js.org/docs/guides/basic-tutorial#setupYour environment