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

Cloudflare Support #174

Open
HowardSteinHudson opened this issue Nov 20, 2024 · 0 comments
Open

Cloudflare Support #174

HowardSteinHudson opened this issue Nov 20, 2024 · 0 comments

Comments

@HowardSteinHudson
Copy link

Bug Report

Describe the bug

I get this error when trying to deploy my Sveltekit app to Cloudflare Pages.

> Using @sveltejs/adapter-cloudflare
X [ERROR] Could not resolve "module"

    .svelte-kit/output/server/chunks/CldImage.js:2:30:
      2 │ import { createRequire } from "module";~~~~~~~~

  Cannot use "module" when deploying to Cloudflare.

Is this a regression?

Not sure, this is my first time using the package.

Steps To Reproduce the error

  1. Create Sveltekit app
  2. Install svelte-cloudinary
  3. Add <CldImage /> component
  4. Deploy to Cloudflare Pages

Your environment

  • OS: Windows 11
  • Node version: 20.18
  • pnpm version: 8.7.1
  • Browser: Chrome
  • "@sveltejs/adapter-cloudflare": "^4.7.4",
  • "@sveltejs/kit": "^2.0.0",
  • "svelte-cloudinary": "^2.3.0",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant