-
Notifications
You must be signed in to change notification settings - Fork 60
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
Can't import the library because of wrong "main" entry in package.json #70
Comments
Fixed 964cbee |
The problem persists when installing via npm |
This issue is still in the latest release 2.1.0 in both this Github repo releases, and npm @CapsE |
Anyone know if there a way to fix this ? I use vitejs and I got this error : "Failed to resolve entry for package "nice-select2". The package may have incorrect main/module/exports specified in its package.json." I'm pretty sure it the same kind of issue, I would really like to use nice-select2 for my project. Thanks. |
For all looking, while we wait for this to be updated in NPM, here's how I solved this on my end:
|
fixed in version 2.2.0 |
Hi, you have an error in your package.json
You're pointing to
src/js/nice-select.js
but the file is acutally namednice-select2.js
this leads to issue when I try to import the library using webpack.The text was updated successfully, but these errors were encountered: