Nuxt.js, Pnpm monorepo and Cloudflare pages

I'm trying to deploy a monorepo to Cloudflare pages. (Moving from Netlify) I changed the config with Nitro, so now the build command is this one:
"build": "NITRO_PRESET=cloudflare-pages PNPM_FLAGS=--shamefully-hoist nuxt build"
"build": "NITRO_PRESET=cloudflare-pages PNPM_FLAGS=--shamefully-hoist nuxt build"
But, once it finishes building, I'm getting this error:
Error: Failed to publish your Function. Got error: Uncaught TypeError: Object prototype may only be an Object or null: undefined

null: undefined
at functionsWorker-0.510744397943952.js:5312:41 in 0o.exports
at functionsWorker-0.5107443937943952.js:5638:4
Error: Failed to publish your Function. Got error: Uncaught TypeError: Object prototype may only be an Object or null: undefined

null: undefined
at functionsWorker-0.510744397943952.js:5312:41 in 0o.exports
at functionsWorker-0.5107443937943952.js:5638:4
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server