coreui / coreui-icons

CoreUI Free Icons - Premium designed free icon set with marks in SVG, Webfont and raster formats
https://coreui.io/icons/
Other
1.97k stars 153 forks source link

Update package.json #40

Open danbopes opened 2 years ago

danbopes commented 2 years ago

Because of the fact that you're using import ... from ... syntax (not commonjs), specifying the type as a module will allow it to be imported into node.js projects. Since this is not common.js (Doesn't use require()), this does not integrate very well with any node.js project (In my specific case next.js), and causes an error SyntaxError: Cannot use import statement outside a module. Specifying the type explicitly (That this is a module) removes this error completely.

danbopes commented 2 years ago

Please please please get this pushed to npm asap, so that I can build my project without some horrendous workarounds.

Jared-Dev commented 1 year ago

@danbopes while frustrating that this change is not in place almost a year down the road you should be able to fix this by using Next's dynamic import syntax to turn off SSR.