premieroctet / next-admin

▲ Full-featured admin for Next.js and Prisma
https://next-admin.js.org
MIT License
313 stars 16 forks source link

NextJS pages router: Module not found turbopack-ecmascript-runtime #159

Closed fgeierst closed 8 months ago

fgeierst commented 8 months ago

I followed the installation guide for the Next JS pages router setup, but see this error:

./node_modules/.pnpm/next@14.1.0_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/use-websocket.js:86:8 Module not found: Can't resolve '@vercel/turbopack-ecmascript-runtime/dev/client/hmr-client.ts' Import trace for requested module: (...) ./src/pages/admin/[[...nextadmin]].tsx

Here is a reduced test case: https://github.com/fgeierst/t3-next-admin-pages-router

Siglave commented 8 months ago

I have the same issue

foyarash commented 8 months ago

Hello,

The error has been fixed in version 3.2.7. Please update the library.

However i reproduced a serialization error with your options, I will have a look into it and deploy a fix for this ASAP

foyarash commented 8 months ago

Serialization error was actually because of a missing superjson plugin, documentation has been updated accordingly.

fgeierst commented 8 months ago

Thanks! This works for me, too. I updated the demo repository.