Skip to content

1.0.0-next.147 breaks conditional [slug] routes #2186

Description

Describe the bug

On @sveltejs/kit version 1.0.0-next.147, trying to access routes such as [id].svelte results in

error loading dynamically imported module

This did not happen on version 1.0.0-next.146.

Reproduction

  1. npm update to the latest version (1.0.0-next.147)
  2. try to access a relative route such as [id].svelte
  3. Status code 500: error loading dynamically imported module

Logs

No response

System Info

Need to install the following packages:
  envinfo
Ok to proceed? (y) 
  System:
    OS: Linux 5.4 Ubuntu 20.04.2 LTS (Focal Fossa)
    CPU: (2) x64 Intel(R) Xeon(R) Silver 4214 CPU @ 2.20GHz
    Memory: 2.91 GB / 7.78 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 16.6.1 - ~/.nvm/versions/node/v16.6.1/bin/node
    npm: 7.20.3 - ~/.nvm/versions/node/v16.6.1/bin/npm
  npmPackages:
    @sveltejs/adapter-node: ^1.0.0-next.33 => 1.0.0-next.40 
    @sveltejs/kit: next => 1.0.0-next.147 
    svelte: ^3.34.0 => 3.42.1

Severity

blocking some usage of SvelteKit

Additional Information

If it helps, here is the (working) system info prior to npm update

  System:
    OS: Linux 5.4 Ubuntu 20.04.2 LTS (Focal Fossa)
    CPU: (2) x64 Intel(R) Xeon(R) Silver 4214 CPU @ 2.20GHz
    Memory: 2.92 GB / 7.78 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 16.6.1 - ~/.nvm/versions/node/v16.6.1/bin/node
    npm: 7.20.3 - ~/.nvm/versions/node/v16.6.1/bin/npm
  npmPackages:
    @sveltejs/adapter-node: ^1.0.0-next.33 => 1.0.0-next.39 
    @sveltejs/kit: next => 1.0.0-next.146 
    svelte: ^3.34.0 => 3.42.1 

Metadata

Metadata

Assignees

No one assigned

    Labels

    p1-importantSvelteKit cannot be used by a large number of people, basic functionality is missing, etc.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions