Skip to content
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

Virtua for svelte is broken on latest svelte [p has already been declared], missing svelte 5 support? #629

Open
phosmium opened this issue Feb 19, 2025 · 0 comments

Comments

@phosmium
Copy link

probably lack of Svelte 5 support?

The TypeScript option verbatimModuleSyntax is now required when using Svelte files with lang="ts". Please add it to your tsconfig.json.
X [ERROR] X;/redacted//node_modules/virtua/lib/svelte/VList.svelte:6:24 `p` has already been declared
https://svelte.dev/e/declaration_duplicate [plugin vite-plugin-svelte:optimize-svelte]

    ../../node_modules/virtua/lib/svelte/VList.svelte:6:24:
      6 │        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
        ╵                         ^

  The plugin "vite-plugin-svelte:optimize-svelte" was triggered by this import

    ../../node_modules/virtua/lib/svelte/index.js:4:33:
      4 │ export { default as VList } from "./VList.svelte";
        ╵                                  ~~~~~~~~~~~~~~~~

5:36:49 PM [vite] (client) error while updating dependencies:
Error: Build failed with 1 error:
../../node_modules/virtua/lib/svelte/VList.svelte:6:24: ERROR: [plugin: vite-plugin-svelte:optimize-svelte] X;/redacted/node_modules/virtua/lib/svelte/VList.svelte:6:24 `p` has already been declared
https://svelte.dev/e/declaration_duplicate
@phosmium phosmium changed the title Virtua for svelte is broken on latest svelte Virtua for svelte is broken on latest svelte [p has already been declared], missing svelte 5 support? Feb 19, 2025
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

No branches or pull requests

1 participant