Deeply confused about migrating SvelteKit project from Vercel to Pages

What is the name of the domain?

cloudflare

What is the issue you’re encountering

Module imports failing after using cloudflare-adapter in sveltekit config

What steps have you taken to resolve the issue?

I’m trying to migrate from Vercel to Pages and I followed this documentation but it seems insufficient Migrating from Vercel to Pages · Cloudflare Pages docs

When I enable cloudflare-adapter in SvelteKit, suddenly my component imports aren’t working anymore. The build keeps failing. I’m looking for detailed, step-by-step instructions, from the beginning, about what I need to add to my project in terms of dependencies, wrangler, etc to get this to work. I don’t have anything configured differently right now between my Vercel deployment and my attempted Pages deployment except for changing that adapter. I do not understand Cloudflare Pages. I do not know Wrangler. I have no idea what durable objects or KV namespaces are. I just need some documentation that will hold my hand and walk me through it.

What are the steps to reproduce the issue?

Don’t even know where to begin.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.