emberjs / ember-inspector

Adds an Ember tab to the browser's Developer Tools that allows you to inspect Ember objects in your application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ember inspector not loading: TypeError: window.requireModule.has is not a function

LordOfCorners opened this issue · comments

Describe the bug
I have a site that is using pretty old versions of everything, but from what I understand the ember inspector should work with version 1.0 and above. (I am on 1.12.2). Not sure if it's a bug or if there's something wrong in my setup. I am getting the following error in the console.

TypeError: window.requireModule.has is not a function

Expected behavior
Inspector should load without errors

Screenshots
image

image

image

Environment
image

Happens in both chrome and firefox

@patricklx thank you so much for addressing this so quickly 🙏 . It's not on the chrome store yet, but I tried downloading 4.9.1 and building it for production and loading into chrome manually (ember version was too old for development version) and the error was the same. It appeared to be using the old code? 4.9.1 appears to be on firefox already so I tried it there and ran into the same thing. Do you have any advice?

Is it exactly the same error? what do you mean by loading it manually? You can download the build extension from here https://github.com/emberjs/ember-inspector/actions/runs/3395073172 at the bottom are the links. Then you need to load it into chrome as an extension and disable the other ember inspector. Then hard reload as it's probably still in the cache

Ok so I have removed the old one, installed the download from your link, hard refreshed, pressed the reload extension icon on the extension page, and I am still getting the exact same error on Chrome no matter what. Weirdly, in firefox (using the live 4.9.1 extension ), it also gives same error but if I hold down command + r for a while it eventually loads. I realize that's not super helpful so I'll see if I can figure out any other details for you.