Closed CapsE closed 5 months ago
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:
npm i patch-package
. There are a few other steps here, found this great article.node_modules/nice-select2/package.json
, apply the changes in the commit abovenpx patch-package nice-select2 --exclude 'nothing'
npm install
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.