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
(node:21908) [DEP0128] DeprecationWarning: Invalid 'main' field in 'E:\Projects\vite-react-ts-starter\node_modules\react-icons\package.json' of 'lib'. Please either fix that or report it to the module author
#461
No real need for additional info, I am pretty sure all people running latest node (15) and npm get this warning. Your main (most probably) needs to point to .cjs entry, and the module entry in package.json needs to point to esm version of it... at least according to this gist: https://gist.github.com/aelbore/65a4d2e86c3326f36607db111a7b6887
The text was updated successfully, but these errors were encountered:
EDIT: This was a temporary fix, however caused another issue of exported modules not being exported from react-icon/all.js, if you guys know how to include them in the export properly it would fix this bug fully for the time being :)
Describe the bug
No real need for additional info, I am pretty sure all people running latest node (15) and npm get this warning. Your
main
(most probably) needs to point to.cjs
entry, and themodule
entry in package.json needs to point toesm
version of it... at least according to this gist: https://gist.github.com/aelbore/65a4d2e86c3326f36607db111a7b6887The text was updated successfully, but these errors were encountered: