question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'Cannot add property toString, object is not extensible'

See original GitHub issue

Hey 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:closed
  • Created 6 years ago
  • Reactions:8
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
teddyzeennycommented, Aug 30, 2017

@Leooo yes I will try to release either today or tomorrow.

1reaction
Leooocommented, Sep 2, 2017

@teddyzeenny restarting chrome a second time fixed the issue. All good now thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found