Skip to content

Svelte5: 5.0.0-next.102 breaks svelte/compiler types #11282

Closed
@baseballyama

Description

@baseballyama

Describe the bug

Now I'm updating svelte-eslint-parser but I got type errors.
sveltejs/svelte-eslint-parser#510

I can not import AST types. (e.g. RegularElement.)

This issue is started after this PR.
#11068

The direct cause is export { walk };.
https://github.com/sveltejs/svelte/blob/main/packages/svelte/types/index.d.ts#L1766
Removing this will make it work nicely.

Reproduction

import type * as Compiler from "svelte/compiler";

let a: Compiler.SvelteElement;

Logs

No response

System Info

System:
    OS: macOS 14.2.1
    CPU: (10) arm64 Apple M2 Pro
    Memory: 104.84 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.12.1 - ~/.nodenv/versions/20.12.1/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.5.2 - ~/.nodenv/versions/20.12.1/bin/npm
    pnpm: 8.15.7 - ~/.nodenv/versions/20.12.1/bin/pnpm
    bun: 1.0.3 - ~/.bun/bin/bun
  Browsers:
    Chrome: 124.0.6367.61
    Edge: 124.0.2478.51
    Safari: 17.2.1

Severity

blocking an upgrade

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions