LayerChart preview deployments started failing yesterday (and Svelte UX 2 weeks ago) with Could not resolve "../output/server/index.js" (and other path) errors.
I believe it is attributed to updating @sveltejs/adapter-cloudflare to 5.0.0 or possibly the latest wrangler (3.95.0 => 3.105.1), but I'm having trouble confirming or identifying a solution. I thought maybe needing to change directory setting but I couldn't find any details on what it should change to. Also, the production deployments have been working.
Click for details


✘ [ERROR] Build failed with 2 errors:
✘ [ERROR] Could not resolve "../output/server/index.js"
_worker.js:2:23:
2 │ import { Server } from "../output/server/index.js";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] Could not resolve "../cloudflare-tmp/manifest.js"
_worker.js:3:49:
3 │ ...est, prerendered, base_path } from "../cloudflare-tmp/manifest.js";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] Build failed with 2 errors:
✘ [ERROR] Could not resolve "../output/server/index.js"
_worker.js:2:23:
2 │ import { Server } from "../output/server/index.js";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] Could not resolve "../cloudflare-tmp/manifest.js"
_worker.js:3:49:
3 │ ...est, prerendered, base_path } from "../cloudflare-tmp/manifest.js";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Any thoughts on what might have changed and how to fix? Thanks!
LayerChart preview deployments started failing yesterday (and Svelte UX 2 weeks ago) with
Could not resolve "../output/server/index.js"(and other path) errors.I believe it is attributed to updating
@sveltejs/adapter-cloudflareto 5.0.0 or possibly the latestwrangler(3.95.0=>3.105.1), but I'm having trouble confirming or identifying a solution. I thought maybe needing to changedirectorysetting but I couldn't find any details on what it should change to. Also, the production deployments have been working.Click for details
Any thoughts on what might have changed and how to fix? Thanks!