Skip to content

TypeError: Cannot set property param of #<ComponentManager> which has only a getter when call the player.load(json) #284

Open
@liup215

Description

@liup215

When I try to call the player.load(json), it show an error:

index.js:811 Uncaught (in promise) TypeError: Cannot set property param of #<ComponentManager> which has only a getter
at baseAssignValue (index.js:811:15)
at assignMergeValue (index.js:753:5)
at baseMergeDeep (index.js:1012:3)
at index.js:923:7
at index.js:1193:11
at baseMerge (index.js:920:3)
at index.js:1912:3
at index.js:1170:9
at apply (index.js:136:25)
at index.js:1406:12

I try to solve it by checking the source code, but I only find the a merge in the Player.ts.

merge(this, json)

I think it's a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions