Ember-inspector: Using Inspector (3.12.2) to view a particular Component or Data Model record fails with the following error:

Created on 9 Nov 2019  路  8Comments  路  Source: emberjs/ember-inspector

Ember : 3.11.1
Ember Data : 3.11.4
Inspector : 3.12.2
Chrome Version 80.0.3963.0 (Official Build) canary (64-bit)

Inspecting a Component, Data Model Record or Container results in:

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: glimmer.value is not a function
Stack trace: TypeError: glimmer.value is not a function
at :3551:42
at Array.forEach ()
at :3531:24
at Array.forEach ()
at calculateCPs (:3530:18)
at Class.mixinsForObject (:3254:7)
at Class.sendObject (:3068:26)
at Class.inspectById (:2990:16)
at sendEvent (http://localhost:4200/assets/vendor.js:30041:14)
at Class.trigger (http://localhost:4200/assets/vendor.js:44727:28)

Most helpful comment

Same here - just appeared this morning with latest update.

All 8 comments

This is introduced in #1035, @pzuraq @patricklx do you mind taking a look?

@iofusion do you have an app we could reproduce this error on?

This can be reproduced by clicking something in the data tab and trying to inspect it, as talked about in this duplicate issue https://github.com/emberjs/ember-inspector/issues/1071.

Looks like we need one more check for glimmer.value
https://github.com/emberjs/ember-inspector/blob/8b977a6287a59e1c3cc1fd37ad706fd915bd9d37/ember_debug/object-inspector.js#L914
Though is it strange that there is metal.track but not glimmer?

Edit: looks like older ember version didn't have .value function.
https://github.com/emberjs/ember.js/blob/v3.11.1/packages/@ember/-internals/glimmer/lib/utils/references.ts#L16
Any alternative?

Same here - just appeared this morning with latest update.

I am also getting the same error in the latest 3.12.2 version of the ember inspector.

VM46:92 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: glimmer.value is not a function
Stack trace: TypeError: glimmer.value is not a function
    at <anonymous>:3551:42
    at Array.forEach (<anonymous>)
    at <anonymous>:3531:24
    at Array.forEach (<anonymous>)
    at calculateCPs (<anonymous>:3530:18)
    at Class.mixinsForObject (<anonymous>:3254:7)
    at Class.sendObject (<anonymous>:3068:26)
    at Class.inspectById (<anonymous>:2990:16)
    at sendEvent (http://localhost/assets/vendor.js:36714:14)
    at Class.trigger (http://localhost/assets/vendor.js:51185:28)

@kumkanillam #1072 fixes this issue, but that update was not available in the Chrome extension store last I checked. There are instruction in this repo's readMe for installing manually.

There hasn't been a new release yet. So I guess that is normal

Was this page helpful?
0 / 5 - 0 ratings

Related issues

efx picture efx  路  6Comments

lifeart picture lifeart  路  7Comments

josemarluedke picture josemarluedke  路  4Comments

danilovaz picture danilovaz  路  8Comments

chancancode picture chancancode  路  3Comments