Closed ramon-adan closed 10 months ago
Hey I ran into the same issue. Are you using NextJS? If so you can fix the issue by creating a component and then importing that component dynamically. The MathView
component therefore won't be rendered on the server (it's a web component under the hood which extends HTMLElement), but the rest of your app can be. Basically this workaround lazyloads the web component. Here's an example repo that demonstrates the idea.
We have the same problem on 0.77.0 :(
The current version of MathLive is 0.95.5.
@arnog It works with 0.95.5. We just need to change our current logic to adjust to the latest version. Thank you 👍
Is there a way to support MathLive on SSR?, I get this error;
ReferenceError: document is not defined at /node_modules/mathlive/dist/mathlive.min.js:2:912106 at /node_modules/mathlive/dist/mathlive.min.js:2:69 at Object. (/node_modules/mathlive/dist/mathlive.min.js:2:209)
I'm using the latest version of Mathlive 0.72.1