Skip to content
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

Edit package.json to allow ES6 imports #102

Open
darkbox opened this issue May 2, 2024 · 0 comments
Open

Edit package.json to allow ES6 imports #102

darkbox opened this issue May 2, 2024 · 0 comments

Comments

@darkbox
Copy link

darkbox commented May 2, 2024

By default is not posible to import the library using an import declaration like import DualListbox from "dual-listbox";. To solve this problem I had to patch the package.json inside node_modules folder with:

"main": "dist/dual-listbox.js",
"module": "src/dual-listbox.js",

Once this is added everything works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant