You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When attempting to import swiffyslider into a React project, I get Module not found: Can't resolve 'swiffy-slider'.
To Reproduce
Steps to reproduce the behavior:
Run yarn add swiffy-slider in fresh project.
Create index.js with import swiffyslider from 'swiffy-slider
Run node index.js
Expected behavior
The swiffyslider object is imported into the file, and I can use it.
Additional context
In attempting to debug this issue, I think part of it has to do with the package.json (it has "main": "dist/swiffy-slider.ESM.min.js" when I think it should be "main": "dist/js/swiffy-slider-ESM.min.js"). I think there might be an issue with ES6 Module Syntax vs CommonJS syntax.
The text was updated successfully, but these errors were encountered:
Yes, it is because the src folder is missing from the npm package. Will fix this and at the same time make the package esm compatible as well. Thanks for observing.
Describe the bug
When attempting to import swiffyslider into a React project, I get
Module not found: Can't resolve 'swiffy-slider'
.To Reproduce
Steps to reproduce the behavior:
yarn add swiffy-slider
in fresh project.index.js
withimport swiffyslider from 'swiffy-slider
node index.js
Expected behavior
The swiffyslider object is imported into the file, and I can use it.
Additional context
In attempting to debug this issue, I think part of it has to do with the package.json (it has
"main": "dist/swiffy-slider.ESM.min.js"
when I think it should be"main": "dist/js/swiffy-slider-ESM.min.js"
). I think there might be an issue with ES6 Module Syntax vs CommonJS syntax.The text was updated successfully, but these errors were encountered: