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

nextjs : Module not found: Package path ./dist/mathlive-fonts.css is not exported from package #64

Open
montassar-vaionex opened this issue Feb 28, 2023 · 6 comments

Comments

@montassar-vaionex
Copy link

error - ./node_modules/react-mathlive/dist/MathfieldComponent.js:53:0
Module not found: Package path ./dist/mathlive-fonts.css is not exported from package C:\www\app\node_modules\react-mathlive\node_modules\mathlive (see exports field in C:\www\app\node_modules\react-mathlive\node_modules\mathlive\package.json)

@AdamZajler
Copy link

@arnog Similar problem here
image

@arnog
Copy link

arnog commented Mar 7, 2023

This package is out of date and I don’t think it’s being maintained anymore. Using MathLive with React these days is pretty straightforward since it’s just a web component.

That said, if you want to use this wrapper, you can just remove line 4 that imports the CSS. The CSS is not needed anymore.

@arnog
Copy link

arnog commented Mar 8, 2023

I should also point out to https://gist.github.com/gerryfletch/09d9995725027fcbf060d0149441c3a8
which is a simpler example of using MathLive with React.

@jana14pb
Copy link

error - ./node_modules/react-mathlive/dist/MathfieldComponent.js:53:0 Module not found: Package path ./dist/mathlive-fonts.css is not exported from package C:\www\app\node_modules\react-mathlive\node_modules\mathlive (see exports field in C:\www\app\node_modules\react-mathlive\node_modules\mathlive\package.json)

I was faced the same issue then i did change mathlive version -0.59.0 and react-mathlive : "^3.0.5-preview.1" . then its solved

@arnog
Copy link

arnog commented Jul 20, 2023

The current version of MathLive is 0.95.0. Integration with React has been much improved and no longer requires a wrapper. An example on how to use the current version of MathLive with React is available here: https://cortexjs.io/mathlive/guides/react/

@jana14pb
Copy link

jana14pb commented Jul 21, 2023

The current version of MathLive is 0.95.0. Integration with React has been much improved and no longer requires a wrapper. An example on how to use the current version of MathLive with React is available here: https://cortexjs.io/mathlive/guides/react/

In react-mathlive--if i try to text find word it's give a some symbols like $$f\in d$$. How to solve this?

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

4 participants