NuxtN
Nuxt7mo ago
11 replies
a cockatoo

Nitro undefined preset/undefined emulation error

Hey
A side project that I'm working on has stopped working after upgrading Nitro to v2.12. I'm getting this error when I try to start the dev server:
 ERROR  Cannot start nuxt:  Nitro entry is missing! Is "undefined" preset correct?                                       
    at resolvePathOptions (node_modules/nitropack/dist/core/index.mjs:435:11)
    at loadOptions (node_modules/nitropack/dist/core/index.mjs:715:11)
    at async createNitro (node_modules/nitropack/dist/core/index.mjs:1100:19)
    at async initNitro (node_modules/nuxt/dist/shared/nuxt.CJ7ZnOUY.mjs:4548:17)
    at async initNuxt (node_modules/nuxt/dist/shared/nuxt.CJ7ZnOUY.mjs:5991:3)
    at async NuxtDevServer._load (node_modules/@nuxt/cli/dist/chunks/index.mjs:245:5)
    at async NuxtDevServer.load (node_modules/@nuxt/cli/dist/chunks/index.mjs:170:7)
    at async NuxtDevServer.init (node_modules/@nuxt/cli/dist/chunks/index.mjs:165:5)
    at async initialize (node_modules/@nuxt/cli/dist/chunks/index.mjs:438:3)
    at async Object.run (node_modules/@nuxt/cli/dist/chunks/dev.mjs:135:43)

Possibly relevant is that the line right before the error says:
ℹ Using undefined emulation in development mode.

The project has nitro-cloudflare-dev installed, not sure if this may have anything to do with it.
I used Cloudflare's instructions (https://developers.cloudflare.com/workers/framework-guides/web-apps/more-web-frameworks/nuxt/) for setting up the project with their development tools preinstalled a few months back. I tried creating a new project to see if the error would repeat, but it didn't.

Any ideas what might be causing this to happen?
Cloudflare Docs
Create a Nuxt application and deploy it to Cloudflare Workers with Workers Assets.
Nuxt
Was this page helpful?