rtfeldman / seamless-immutable

Immutable data structures for JavaScript which are backwards-compatible with normal JS Arrays and Objects.
BSD 3-Clause "New" or "Revised" License
5.37k stars 195 forks source link

seamless-immutable.js:522 Uncaught TypeError: this.instantiateEmptyObject is not a function #226

Closed NikkiTheBugSlayer closed 7 years ago

NikkiTheBugSlayer commented 7 years ago

I am getting the following error whenever I try to create an asMutable Uncaught TypeError: this.instantiateEmptyObject is not a function.

This is my line of code where I call it. schema = Immutable.asMutable(schema, { deep: true });

If you need more info let me know. Thanks in advance.

NikkiTheBugSlayer commented 7 years ago

Nevermind I figured it out. I was trying to create an asMutable from object that wasn't imutable. Stupid mistake.