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

Support for server side rendering? #23

Open
digz6666 opened this issue Mar 28, 2021 · 4 comments
Open

Support for server side rendering? #23

digz6666 opened this issue Mar 28, 2021 · 4 comments

Comments

@digz6666
Copy link

digz6666 commented Mar 28, 2021

It says document is not defined when used with server side rendering.

node_modules\mathlive\dist\mathlive.js:11955
     const gScriptUrl = (_b = (_a = document.currentScript) === null || _a === void 0 ? void 0 : _a.src) !== null && _b !== void 0 ? _b : getFileUrl();
[1]                        ^
[1]
[1] ReferenceError: document is not defined
[1]     at node_modules\mathlive\dist\mathlive.js:11955:24
[1]     at node_modules\mathlive\dist\mathlive.js:2:68

@ramon-adan
Copy link

Any update regarding this?

@arnog
Copy link

arnog commented Apr 23, 2022

Note that this is fixed in the current version of MathLive (0.72.1).

@Mopiel
Copy link

Mopiel commented Oct 23, 2023

We are using 0.77.0 and this is the output
image

@arnog
Copy link

arnog commented Oct 23, 2023

I would recommend trying the current version, with is 0.95.5.

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