slim-select: [ERROR] No matching export in "../../node_modules/slim-select/dist/slimselect.umd.js" for import "default"

I have problem with SlimSelect version: ^2.4.0 Not have problem with version 2.3.3

[ERROR] No matching export in "../../node_modules/slim-select/dist/slimselect.umd.js" for import "default"

      4 │ import SlimSelect from 'slim-select';
        ╵        ~~~~~~~~~~

Thanks and regards Francesco

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 19 (2 by maintainers)

Commits related to this issue

Most upvoted comments

Oh I see what you mean. Add this line to the package.json

 "slim-select":"https://github.com/francesco-loreti/slim-select#fix-429",

What worked for me was importing the ES build like so: import SlimSelect from 'slim-select/dist/slimselect.es'

And if you use my solution, have same problem? "slim-select": "https://github.com/francesco-loreti/slim-select#fix-429",

Why was it closed? I continue to have the problem.

If I’m doing something wrong I’d like to know. Thanks