© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•3y ago
sean

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  
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

PNPM Monorepo on cloudflare pages
Cloudflare DevelopersCDCloudflare Developers / pages-help
3y ago
Cloudflare Pages + TurboRepo + PNPM
Cloudflare DevelopersCDCloudflare Developers / pages-help
3y ago
Cloudflare pages-actions and monorepo nx
Cloudflare DevelopersCDCloudflare Developers / pages-help
3y ago
Monorepo project on Cloudflare pages
Cloudflare DevelopersCDCloudflare Developers / pages-help
3y ago