gabrielstuff
gabrielstuff
NNuxt
Created by gabrielstuff on 12/16/2024 in #❓・help
Build Nuxt for CF Worker and postgre
Hello, I'm trying to deploy a nuxt 3 app on CF workers which use postgre module and even after using compatibility_flags = [ "nodejs_compat" ] or compatibility_flags = ["nodejs_compat_v2"] in the wrangler.toml I hit the error :
Error: Cannot resolve "cloudflare:sockets" from "node_modules/.pnpm/[email protected]/node_modules/postgres/cf/polyfills.js" and externals are not allowed!
Error: Cannot resolve "cloudflare:sockets" from "node_modules/.pnpm/[email protected]/node_modules/postgres/cf/polyfills.js" and externals are not allowed!
Any idea on how to fix this ?
6 replies