Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
baseballyama opened this issue Apr 21, 2024 · 0 comments · Fixed by #11283
Closed

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

baseballyama opened this issue Apr 21, 2024 · 0 comments · Fixed by #11283

Comments

@baseballyama
Copy link
Member

baseballyama commented Apr 21, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant