Skip to content

Error: Cannot resolve "cloudflare:sockets" from "...\node_modules\.pnpm\postgres@3.4.0\node_modules\postgres\cf\polyfills.js" and externals are not allowed! #727

Closed
@cetuuus

Description

@cetuuus

hi,
I'm using Nuxt 3 v3.8, and I'm trying to deploy to cloudflare with the cloudflare preset. But I get the following error:
image
I've seen that you've already created a fix for this error, but I'm using version 3.4.0 of postgres and the error is still there...

My wrangler.toml file contains the line:

node_compat = true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions