react-mathlive
react-mathlive copied to clipboard
Support for server side rendering?
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
Any update regarding this?
Note that this is fixed in the current version of MathLive (0.72.1).
We are using 0.77.0 and this is the output
I would recommend trying the current version, with is 0.95.5.