Skip to content

No known conditions for "./elements" specifier in "svelte" package #14275

@willianctti

Description

@willianctti

Describe the bug

Utilizing the svelte 5 i receive ths error when i run "pn dev" in my bash. I received the suggestion of a dwongrade for Svelte 4. Would it help?

Reproduction

No known conditions for "./elements" specifier in "svelte" package [plugin vite:dep-scan]

    script:/myProject/src/lib/components/Input.svelte?id=0:19:7:
      19 │ import 'svelte/elements'
         ╵        ~~~~~~~~~~~~~~~~~

  This error came from the "onResolve" callback registered here:

    node_modules/.pnpm/esbuild@0.21.5/node_modules/esbuild/lib/main.js:1150:20:
      1150 │       let promise = setup({
           ╵                     ^

Logs

No response

System Info

No known conditions for "./elements" specifier in "svelte" package [plugin vite:dep-scan]

Severity

blocking all usage of svelte

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting submitterneeds a reproduction, or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions