For Workers & Pages, what is the name of the domain?
Still under development
What is the error number?
Build error, not a runtime error
What is the error message?
Could not resolve “../output/server/index.js” from “.svelte-kit/cloudflare/_worker.js”
What is the issue or error you’re encountering
The deployment is failing
What steps have you taken to resolve the issue?
I updated wrangler from 4.20.0 to 4.21.2 and now I’m getting
Could not resolve “../output/server/index.js” from “.svelte-kit/cloudflare/_worker.js”
for my sveltekit application.
Everything was working fine until I tried to add some native node functions. Here is my svelte.config.js adapter
adapter: adapter({
platformProxy: {
configPath: 'wrangler.toml',
environment: 'production',
persist: true
},
fallback: 'plaintext'
})
and the relevant values on my wrangler.toml
name = "xxxxxx"
main = ".svelte-kit/cloudflare/_worker.js"
compatibility_date = "2024-12-05"
compatibility_flags = [ "nodejs_compat" ]
observability = { enabled = true }
Again, everything successfully depolyed before I tried to add the node specific functions today.