react-mathlive icon indicating copy to clipboard operation
react-mathlive copied to clipboard

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

Open montassar-vaionex opened this issue 2 years ago • 6 comments

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)

montassar-vaionex avatar Feb 28 '23 18:02 montassar-vaionex

@arnog Similar problem here image

AdamZajler avatar Mar 07 '23 21:03 AdamZajler

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 avatar Mar 07 '23 22:03 arnog

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

arnog avatar Mar 08 '23 01:03 arnog

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

jana14pb avatar Jul 20 '23 07:07 jana14pb

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/

arnog avatar Jul 20 '23 15:07 arnog

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?

jana14pb avatar Jul 21 '23 10:07 jana14pb