Error in create part in next.js demo

Enonic version: 7.10.3
OS: Win 10

When I do the Section Parts NEXT.DEMO and run it, I always get the following error

Hi @mehdi !

That error tells you that html generated on the server differs from the one rendered on the client.
Sometimes that happens when you use nextjs server in dev mode for a long time and its caches got corrupted or stale.

Try doing the following:

  1. Go to your nextjs project root folder
  2. Delete .next folder
  3. Build the project from scratch using npm run build or npx next build
  4. Start the project in dev mode again with npm run dev or npx next dev

Let me know if that helped !