nitro icon indicating copy to clipboard operation
nitro copied to clipboard

Error when building for cloudflare preset

Open zipme opened this issue 2 years ago • 0 comments

Hi,

When running NITRO_PRESET=cloudflare pnpm build I get:



 ERROR  Cannot resolve "xxx/node_modules/.pnpm/[email protected]/node_modules/unenv/runtime/node/buffer/index.mjs" from "xxx/node_modules/.pnpm/[email protected]/node_modules/h3/dist/index.mjs" and externals are not allowed!

  at Object.resolveId (xxx/node_modules/.pnpm/[email protected][email protected]/node_modules/nitropack/dist/chunks/prerender.mjs:1095:17)
...)

 ELIFECYCLE  Command failed with exit code 1.

I am using nuxt version v3.0.0-rc.3-27539143.46c656c

Normal building without preset works fine.

zipme avatar May 13 '22 10:05 zipme