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

It works in svelte 4 but not in version 5 #294

Open
rchavezj opened this issue Oct 22, 2024 · 2 comments
Open

It works in svelte 4 but not in version 5 #294

rchavezj opened this issue Oct 22, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@rchavezj
Copy link

rchavezj commented Oct 22, 2024

✘ [ERROR] node_modules/svelte-multiselect/dist/MultiSelect.svelte:521:6 Event attribute must be a JavaScript expression, not a string [plugin vite-plugin-svelte:optimize-svelte]

    node_modules/svelte-multiselect/dist/MultiSelect.svelte:521:6:
      521 │      ondrop="return false"
          ╵       ^

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

    node_modules/svelte-multiselect/dist/index.js:3:48:
      3 │ export { default as MultiSelect, default } from './MultiSelect.svelte';
        ╵                                                 ~~~~~~~~~~~~~~~~~~~~~~

(node:5065) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)

@rchavezj rchavezj added the bug Something isn't working label Oct 22, 2024
@rchavezj rchavezj changed the title I works in svelte 4 but not in version 5 It works in svelte 4 but not in version 5 Oct 22, 2024
@einarpersson
Copy link

Is there a workaround?

@obelisk-services
Copy link

Hi,

I had the same problem, so I update to v11.0.0-rc.1 and the problem is no more. I guess version 11 (svelte 5 compatible) will not have this issue.

Best regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants