Hi, @giuzntt. I ran the following commands to update your project's packages.
npm update --force
npm install next@latest --force
npm install @prismicio/react@latest --force
npm install react-dom@latest --force
npm install react@latest --force
npm install @prismicio/next@latest --force
Afterwards, npx @slicemachine/init@latest
should detect Next.js and install our Next.js Slice Machine adapter.
If you're still having issues, have you tried our Yarn workaround? Delete your yarn.lock
file and then run the npx
command again: npx @slicemachine/init@latest
. Then try installing your modules using yarn install
.
You should then be able to run your dev server using yarn dev
and Slice Machine using npm run slicemachine
.
Thanks,
Louise