Nuxt3 with Cloudflare Pages - Error: Cannot resolve "emitter" from index.js

I follow the instructions on https://blog.cloudflare.com/pages-full-stack-frameworks/ and ran:
NITRO_PRESET=cloudflare-pages npx nuxi build
NITRO_PRESET=cloudflare-pages npx nuxi build
It gave an error but I don’t know what it’s complaining:
Error: Cannot resolve "emitter" from "/path/to/node_modules/batch/index.js" and externals are not allowed!
Error: Cannot resolve "emitter" from "/path/to/node_modules/batch/index.js" and externals are not allowed!
I wanted to build edge-side render on cloudflare pages.
The Cloudflare Blog
Server-side render full stack applications with Pages Functions
Page Functions are now out of beta, bringing the ability to add dynamic server-side rendering to your applications. Pages makes it easy to deploy applications built using all the major frameworks.
1 Reply
Erisa
Erisa14mo ago
Can you send in #pages-help instead? You're likely to get a better response there