Skip to content

godotjs 4.4 is unable to import mobx, and underlying issues obscured #102

@valraven9

Description

@valraven9

When trying to import the mobx library in a 4.3 editor, it gives a verbose error that process is missing

Image

knowing what the issue is I'm able to add a polyfill file and mobx works without issue in the project

// polyfill.ts
(globalThis.process as any) = { env: { NODE_ENV: "development" } };

But in 4.4 (before importing the polyfill file) the mobx error it gives obscures whatever the issue is (presumably still that process is missing)

Image

And if I do add the polyfill file, the I get the same obscure error - but this time unable to load the polyfill file

Image

Please advise! Thank you for all the work you're doing on this library

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