Skip to content

TypeError: Cannot read property 'createState' of null #2

@DeadIine

Description

@DeadIine

Hi @Kelin2025 ,

After minifying the code, apicase Spawner crashes due to following check:

if ("ApiService" === n.base.constructor.name).

After uglify, n.base.constructor.name is being mangled to a single character, e.g. u. The check for "ApiService obviously fails then.

Is there a way to change the if clause to something that's not being influenced by minification? An internal boolean or something...

For Example there's a flag _isApiService in the base object, why not use that or something similar?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions