Skip to content

TypeError: Could not find package '__sveltekit' from referrer #13975

@janosh

Description

@janosh

Describe the bug

vitest started failing after #13971 was shipped in v2.22.3

TypeError: Could not find package '__sveltekit' from referrer 'file:///home/runner/work/matterviz/matterviz/node_modules/.deno/@[email protected]/node_modules/@sveltejs/kit/src/runtime/client/client.js'.
 ❯ src/lib/periodic-table/PeriodicTable.svelte:4:31
 ❯ src/lib/periodic-table/index.ts:3:1

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_MODULE_NOT_FOUND' }

Reproduction

run npm install && npm test in https://stackblitz.com/edit/sveltejs-kit-template-default-4x24ccgf

Logs

System Info

System:
    OS: macOS 15.5
    CPU: (14) arm64 Apple M4 Pro
    Memory: 141.50 MB / 24.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 24.2.0 - /opt/homebrew/bin/node
    npm: 11.3.0 - /opt/homebrew/bin/npm
    pnpm: 10.11.0 - /opt/homebrew/bin/pnpm
  Browsers:
    Brave Browser: 138.1.80.115
    Safari: 18.5

Severity

serious, but I can work around it

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions