Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Cannot use this for cloudflare adapter #10

Open
3 tasks done
gerhardcit opened this issue May 1, 2024 · 0 comments
Open
3 tasks done

Bug: Cannot use this for cloudflare adapter #10

gerhardcit opened this issue May 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@gerhardcit
Copy link

Prerequisites

Describe the issue

When you use this in your svelte.config.js
import adapter from '@sveltejs/adapter-cloudflare';

And trying to build the app for preview of deployment to Cloudflare, you get this.

> Using @sveltejs/adapter-cloudflare
✘ [ERROR] Could not resolve "node:http"

    .svelte-kit/output/server/chunks/KindeSDK.js:8:22:
      8 │ import * as http from "node:http";
        ╵                       ~~~~~~~~~~~

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


✘ [ERROR] Could not resolve "node:https"

    .svelte-kit/output/server/chunks/KindeSDK.js:9:23:
      9 │ import * as https from "node:https";
        ╵                        ~~~~~~~~~~~~

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

### Starter kit URL

https://github.com/kinde-starter-kits/sveltekit-starter-kit

### Operating system(s)

macOS

### Operating system version(s)

Sonoma 14.3.1

### Further environment details

_No response_

### Reproducible test case URL

_No response_

### Additional information

_No response_
@gerhardcit gerhardcit added the bug Something isn't working label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant