coreui-icons icon indicating copy to clipboard operation
coreui-icons copied to clipboard

Update package.json

Open danbopes opened this issue 4 years ago • 2 comments

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 avatar Nov 06 '21 00:11 danbopes

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

danbopes avatar Nov 06 '21 01:11 danbopes

@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.

Jared-Dev avatar Oct 14 '22 16:10 Jared-Dev