Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global CSS cannot be imported from within node_modules. #35

Open
Ibnathism opened this issue Jul 14, 2021 · 2 comments
Open

Global CSS cannot be imported from within node_modules. #35

Ibnathism opened this issue Jul 14, 2021 · 2 comments

Comments

@Ibnathism
Copy link

I am trying to use react-mathlive in a next.js project but facing this issue

./node_modules/mathlive/dist/mathlive-fonts.css
Global CSS cannot be imported from within node_modules.
Read more: https://nextjs.org/docs/messages/css-npm
Location: node_modules/react-mathlive/dist/MathfieldComponent.js

I'm dropping nextjs documentation link here
https://nextjs.org/docs/messages/css-npm

@AdamZajler
Copy link

Same problem here; anyone have a sollution for this?

@arnog
Copy link

arnog commented Mar 8, 2023

This package is out of date and as far as I can tell no longer maintained. The good news is that using MathLive in React should be pretty straightforward since it is now a web component.

Here's an example https://gist.github.com/gerryfletch/09d9995725027fcbf060d0149441c3a8

It's actually probably more complicated than what you need since it tries to do some custom styling which is probably not needed, but that may be enough to get you started

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants