Skip to content

Build failed when compiling with adapter-cloudflare #31

@kroniapp

Description

@kroniapp

Starting from version 2.0.0, in Sveltekit I cannot compile with adapter-cloudflare.

The error I am receiving is:

Error: Build failed with 2 errors: .svelte-kit/output/server/chunks/lists.js:2:14: ERROR: Could not resolve "util" .svelte-kit/output/server/chunks/lists.js:3:14: ERROR: Could not resolve "crypto" 

I'm using Sveltekit with SSR disabled, so no Node packages are allowed.

From what I found reading the source code, I think the problem is with the new "cyrup" dependency added from version 2.0.0, which imports the two Node packages.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions