Joeyonng / react-jupyter-notebook

A simple React component that renders .ipynb files just like how they are rendered by JupyterLab.
MIT License
42 stars 20 forks source link

issue when using library with Next.js #9

Open AlexFreik opened 2 years ago

AlexFreik commented 2 years ago

When i try to use this library i get the following error:

./node_modules/react-jupyter-notebook/node_modules/katex/dist/katex.min.css
Global CSS cannot be imported from within node_modules.
Read more: https://nextjs.org/docs/messages/css-npm
Location: node_modules/react-jupyter-notebook/dist/index.js

it looks like this library library is incorrectly publishing css imports to npm.

relevant links:

ragokan commented 2 years ago

Yeah, I am also having the same problem, looks like I am going to fork the repo and do these, sadly.