A minimal repo to reproduce an issue of Nitro running out of memory when importing data for seeding. Refer to this discord thread for more information.
- Clone this repo
- Run
npm install
- Run
npm run dev
- Run
npm run db:generate
- Visit
http://localhost:3000
, open Nuxt DevTools and runServer Tasks > db:seed
task.
Step 5 above will throw an error in the terminal since Nitro cannot find the module imported dynamically in server/tasks/db/seed.ts
, when running at .nuxt/dev/
.