GithubHelp home page GithubHelp logo

Comments (6)

nickschot avatar nickschot commented on May 29, 2024 2

We're likely seeing the same issue. Spotted because suddenly the optional feature application-template-wrapper was true, causing a visual bug due to the extra html element. Doesn't happen when ember-inspector is disabled.

from ember-inspector.

ef4 avatar ef4 commented on May 29, 2024 1

Spotted because suddenly the optional feature application-template-wrapper was true, causing a visual bug due to the extra html element.

Yes, the application-template-wrapper setting glitching can also cause this.element to be undefined in a rendering test, which was the case I first saw.

from ember-inspector.

patricklx avatar patricklx commented on May 29, 2024

Probably need to insert this at the top?

document.documentElement.appendChild(script);

Or another way to run code in user space .
Inspector must set that property before ember loads as far as i know

from ember-inspector.

patricklx avatar patricklx commented on May 29, 2024

@ef4 do you have an example online website where that happens?
this should not depend on how fast inspector loads. the boot.js file is inserted into all websites before the page loads the actual html.
while debugging i found that when boot.js runs, document.documentElement.children is empty. So the page did not yet load.
so even with
document.documentElement.appendChild(script) it will be at the top and run first.
edit: do you test with chrome or firefox?
edit2: firefox failed to release, so must be chrome

do you have other extensions installed?

from ember-inspector.

patricklx avatar patricklx commented on May 29, 2024

i confirmed it happens here:
https://ember-learn.github.io/ember-cli-addon-docs/

from ember-inspector.

aoumiri avatar aoumiri commented on May 29, 2024

Same here, we spend some time debugging this issue thinking it was our code, and that it was impacting our users, but we came to the conclusion that it was ember inspector that was breaking the app.

It happens on chromium browsers: with the ember inspector enabled, we can reproduce the issue, without it the app runs just fine.

Also, I confirm that the issue is random. Sometimes, the plugin's config overwrites the application's one. To reproduce it, you have to try multiple times a page refresh.

We also noticed that it's related to the application-template-wrapper param.

from ember-inspector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.