Skip to content

Preview deployments broken (likely @sveltejs/adapter-cloudflare@5.0.0 related) #26

@techniq

Description

@techniq

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

Image

Image

✘ [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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions