nice-select2
nice-select2 copied to clipboard
Can't import the library because of wrong "main" entry in package.json
Hi, you have an error in your package.json
{
"name": "nice-select2",
"version": "2.1.0",
"description": "A lightweight Vanilla JavaScript plugin that replaces native select elements with customizable dropdowns.",
"main": "src/js/nice-select.js",
"directories": {
"doc": "docs"
}
...
You're pointing to src/js/nice-select.js
but the file is acutally named nice-select2.js
this leads to issue when I try to import the library using webpack.