-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inspector does not recognize app if Ember.ENV.EXTEND_PROTOTYPES does not exist #1114
Comments
@chancancode thoughts? |
Eh! Good catch, will fix soon! |
It's caused by this line:
It should be |
Working on it now! |
@jdrobertso what is the ember-source version of your app? |
@chancancode It looks like we are not using ember-source in that version of the app. |
I'm not exactly sure how this can happen, now that I think about it. Ember normalizes the The way it's supposed to work (I could be wrong, cc @rwwagner90), is if your ember version is below that, it should switch to the old adapters, in which case this code shouldn't even run. But maybe the code is still loaded? |
@jdrobertso what is |
@chancancode Apologies, I was going off the package.json ember-cli version. Ember.VERSION is 1.13.13. |
Fixed and published! |
Issue and Steps to Reproduce
On opening Ember inspector on one of my Ember apps, I am getting the below stack trace.
raven.js:383 Uncaught TypeError: Cannot read property 'Array' of undefined
at n.callback (:402:35)
at n.exports (vendor-ff8d5821b66c1…b3ac1b81a4b902.js:3)
at n._reify (vendor-ff8d5821b66c1…b3ac1b81a4b902.js:3)
at n.reify (vendor-ff8d5821b66c1…b3ac1b81a4b902.js:3)
at n.exports (vendor-ff8d5821b66c1…b3ac1b81a4b902.js:3)
at requireModule (vendor-ff8d5821b66c1…b3ac1b81a4b902.js:3)
at sendVersionMiss (:9612:19)
at :9420:7
at triggerOnce (:9493:7)
at completed (:5962:7)
at d (raven.js:379)
On debugging, I found that it hits the code mentioned in the PR here. Specifically:
if (Ember.ENV.EXTEND_PROTOTYPES.Array)
is the line throwing the error. In my app, Ember.ENV.EXTEND_PROTOTYPES is undefined.Your environment
This issue is definitely present on the latest version of the Chrome Browser tool. On Firefox, the stack trace instead says
TypeError: Ember.ENV.EXTEND_PROTOTYPES is undefined
, but is essentially caused by the same issue. The Ember CLI version for the app is 2.5.0.The text was updated successfully, but these errors were encountered: