Skip to content

Errors Deploying to Cloudflare Pages #2905

Open
@dhndmn

Description

@dhndmn

I'm attempting to deploy a Svelte app to Cloudflare Pages. The app builds, but I have two issues related to @nangohq/node that are keeping me from deploying. Could someone possibly point me in the right direction of how to resolve these? Thank you!

Could not resolve "node:https"

../../node_modules/.pnpm/@nangohq+node@0.42.20/node_modules/@nangohq/node/dist/index.js:3:18:
  3 │ import https from 'node:https';
    ╵                   ~~~~~~~~~~~~

Cannot use "node:https" when deploying to Cloudflare.

Could not resolve "os"

../../node_modules/.pnpm/@nangohq+node@0.42.20/node_modules/@nangohq/node/dist/utils.js:1:15:
  1 │ import os from 'os';
    ╵                ~~~~

Cannot use "os" when deploying to Cloudflare.

error during build:
Error: Bundling with esbuild failed with 2 errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions