Edit package.json to allow ES6 imports
darkbox opened this issue · comments
Rafa G.M. commented
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.