ember-inspector icon indicating copy to clipboard operation
ember-inspector copied to clipboard

First visit to "Routes" table via "Routes" tab outputs JS error on app with engines.

Open GCheung55 opened this issue 5 years ago • 3 comments

Issue and Steps to Reproduce

  • The first visit to "Routes" table, by selecting the "Routes" tab, displays an empty table and outputs a JS error:
This is likely a bug in the inspector itself.
You can report bugs at https://github.com/emberjs/ember-inspector.
Error message: routeHandler.get is not a function
Stack trace: TypeError: routeHandler.get is not a function
    at o.buildSubTree (<anonymous>:4050:39)
    at o.<anonymous> (<anonymous>:3950:22)
    at Re.Ne.get (https://snapdragon-ws.fitbit.com/assets/vendor-617b03c28e2ef60d43021b01ddd6048c.js:3219:20)
    at Me (https://snapdragon-ws.fitbit.com/assets/vendor-617b03c28e2ef60d43021b01ddd6048c.js:3191:89)
    at o.get (https://snapdragon-ws.fitbit.com/assets/vendor-617b03c28e2ef60d43021b01ddd6048c.js:3828:58)
    at o.sendTree (<anonymous>:3956:30)
    at o.getTree (<anonymous>:3922:14)
    at h (https://snapdragon-ws.fitbit.com/assets/vendor-617b03c28e2ef60d43021b01ddd6048c.js:3070:111)
    at o.trigger (https://snapdragon-ws.fitbit.com/assets/vendor-617b03c28e2ef60d43021b01ddd6048c.js:3826:90)
    at <anonymous>:3502:14

Alternate clicks (14) between another tab and "Routes" tab will eventually have the table display data.

May be related to #632 ?

  • Reproduction steps:
  1. Go to https://www.fitbit.com/settings (You may need to create an account).
  2. Open Ember-Inspector
  3. Click on "Routes" tab

Your environment

  • Ember Version: 3.1
  • Browser: Chrome 76.0.3809.100

Screenshots

The page to visit: https://www.fitbit.com/settings image

Expected: Table of routes, objects, and URLs are displayed. image

Actual: Table is empty and JS error is output to console. Alternate clicks (14) between another tab and "Routes" tab will eventually have the table display data. image

GCheung55 avatar Oct 24 '19 19:10 GCheung55

Engines are not currently supported

RobbieTheWagner avatar Oct 24 '19 20:10 RobbieTheWagner

Mark this as duplicate to https://github.com/emberjs/ember-inspector/issues/632? @rwwagner90

steventsao avatar Dec 13 '20 23:12 steventsao

@steventsao yeah, I suppose they are basically the same ask, but this one does have some more context.

RobbieTheWagner avatar Dec 14 '20 01:12 RobbieTheWagner

This must have been a timing issue. We use engines at work and I am able to access the Routes tab on the first click. Going to close for now, but please let us know if you are still experiencing issues!

RobbieTheWagner avatar Feb 12 '24 13:02 RobbieTheWagner