nice-select2 icon indicating copy to clipboard operation
nice-select2 copied to clipboard

Can't import the library because of wrong "main" entry in package.json

Open CapsE opened this issue 10 months ago • 4 comments

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.

CapsE avatar Oct 05 '23 11:10 CapsE