You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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/@[email protected]/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/@[email protected]/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
The text was updated successfully, but these errors were encountered:
Hey
Cloudflare workers are a subset of nodes, knows to have issues with some native packages.
For https you can use the compat mode jdalrymple/gitbeaker#3505 (comment)
Not sure about os
Thanks for the tip, @bodinsamuel. Are Cloudflare Workers and Pages considered/handled the same when it comes to this? I’m not using Workers per se, but if they are the same…
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"
Cannot use "node:https" when deploying to Cloudflare.
Could not resolve "os"
Cannot use "os" when deploying to Cloudflare.
error during build:
Error: Bundling with esbuild failed with 2 errors
The text was updated successfully, but these errors were encountered: