Skip to content

Support for server side rendering? #23

Open

Description

@digz6666

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

Activity

  1. ramon-adan commented on Apr 23, 2022

    @ramon-adan

    Any update regarding this?

  2. arnog commented on Apr 23, 2022

    @arnog

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

  3. Mopiel commented on Oct 23, 2023

    @Mopiel

    We are using 0.77.0 and this is the output
    image

  4. arnog commented on Oct 23, 2023

    @arnog

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions