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

nextjs : error - ./node_modules/react-math-view/dist/index.modern.js:1:0 Module not found: Package path ./dist/mathlive-fonts.css is not exported from package

Open montassar-vaionex opened this issue 1 year ago • 1 comments

error - ./node_modules/react-math-view/dist/index.modern.js:1:0 Module not found: Package path ./dist/mathlive-fonts.css is not exported from package

montassar-vaionex avatar Mar 02 '23 19:03 montassar-vaionex

You need to copy the fonts (and sounds) to public/static, then pass the paths as attributes: <math-field fonts-directory="/static/fonts" sounds-directory="/static/sounds" >

Note that there is currently a bug in Mathlive where these arguments are not read if the read-only attribute is provided. In this case you should use mf.setOptions to change the fonts directory.

WildYellowfin avatar Mar 18 '23 19:03 WildYellowfin