yo35 / kokopu-react

A React-based library to create and display chessboard and chess-related components.
https://www.npmjs.com/package/kokopu-react
GNU Lesser General Public License v3.0
6 stars 1 forks source link

Global CSS cannot be imported from within node_modules #4

Closed mayur-samrutwar closed 10 months ago

mayur-samrutwar commented 12 months ago
./node_modules/kokopu-react/dist/lib/chessboard/Chessboard.css
Global CSS cannot be imported from within node_modules.
Read more: https://nextjs.org/docs/messages/css-npm
Location: node_modules\kokopu-react\dist\lib\chessboard\ChessboardImpl.js

This error is coming after importing Chessboard comp.

yo35 commented 11 months ago

The NextJs policy regarding how CSS imports from within node_modes has been debated here: https://github.com/vercel/next.js/issues/19936

From what I understand of the discussion, this policy has been changed in NextJs 13.

Anyway, in my opinion, this is not a bug of Kokopu-React.