'Cannot add property toString, object is not extensible'
See original GitHub issueHey all,
Our team has recently ran into this Ember Inspector related error with the latest 2.1.0 release that went out a few hours ago. The quickest way to see this is to inspect any Ember model in the data store view. Has anyone else experienced this?
Ember Inspector has errored.
This is likely a bug in the inspector itself.
You can report bugs at https://github.com/emberjs/ember-inspector.
Error message: Cannot add property toString, object is not extensible
Stack trace: TypeError: Cannot add property toString, object is not extensible
at Mixin.classToString [as toString] (http://localhost:5000/assets/vendor.js:58602:21)
at mixins.forEach.mixin (<anonymous>:3029:24)
at Array.forEach (<anonymous>)
at Class.mixinsForObject (<anonymous>:3026:14)
at Class.sendObject (<anonymous>:2942:26)
at Class.inspectModel (<anonymous>:856:37)
at Object.sendEvent (http://localhost:5000/assets/vendor.js:39028:18)
at Class.trigger (http://localhost:5000/assets/vendor.js:55337:25)
at wrap (<anonymous>:3438:14)
at Class.<anonymous> (<anonymous>:3468:18)
The last part of that stack traces stops here:
function classToString() {
if (!searchDisabled && !this[_emberMetalMixin.NAME_KEY]) {
processAllNamespaces();
}
var ret = undefined;
if (this[_emberMetalMixin.NAME_KEY]) {
ret = this[_emberMetalMixin.NAME_KEY];
} else if (this._toString) {
ret = this._toString;
} else {
var str = superClassString(this);
if (str) {
ret = '(subclass of ' + str + ')';
} else {
ret = '(unknown mixin)';
}
this.toString = makeToString(ret);
}
return ret;
}
at ‘this.toString = makeToString(ret);’ (ret being ‘(unknown mixin)’)
We’re using the following library versions:
Ember Inspector | 2.1.0 Ember | 2.8.1 Ember Data | 2.8.1 jQuery | 2.1.4
Thanks in advance!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:8
- Comments:16 (5 by maintainers)
Top Results From Across the Web
TypeError: can't define property "x": "obj" is not extensible
To fix this error, you will either need to remove the call to Object.preventExtensions() entirely, or move it to a position so that...
Read more >Object is not extensible error when creating new attribute for ...
data when calling the function), but this didn't seem to be a problem as newData is a new copy of data array... I'm...
Read more >TypeError: can't define property "x": "obj" is not extensible
To fix this error, you will either need to remove the call to Object.preventExtensions() entirely, or move it to a position so that...
Read more >JavaScript TypeError - Can't define property "X": "Obj" is not ...
This JavaScript exception can't define property “x”: “obj” is not extensible occurs when Object.preventExtensions() used on an object to ...
Read more >This Error is coming "Cannot add property count, object is not ...
It seems that with Spring 20, the response from apex has become non-extensible with additional parameters.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Leooo yes I will try to release either today or tomorrow.
@teddyzeenny restarting chrome a second time fixed the issue. All good now thanks!