Git Product home page Git Product logo

Comments (6)

lukemelia avatar lukemelia commented on June 20, 2024

@IgorKvasn thanks for this report. Please try the branch in #372 and let me know if it works in your app. I would love to add test coverage so that we don't regress on this again. I don't use engines or know much about testing compatibility though, so any help is welcome.

from ember-modal-dialog.

IgorKvasn avatar IgorKvasn commented on June 20, 2024

I tried the branch #372 and it does not seem to work :( I am getting error

  Uncaught Error: Assertion Failed: Could not find the root Application for '<(unknown):ember227>'.
    at assert (index.js:181:1)
    at Object._default [as initialize] (add-modals-container.js:39:1)
    at index.js:140:1
    at Vertices.each (dag-map.js:231:1)
    at Vertices.walk (dag-map.js:145:1)
    at DAG.each (dag-map.js:75:1)
    at DAG.topsort (dag-map.js:83:1)
    at Class._runInitializer (index.js:155:1)
    at Class.runInstanceInitializers (index.js:138:1)
    at Class._bootSync (instance.js:111:1)

I did a little bit of debugging and it seems that this "if" condition does not pass

if (instance instanceof Application) {

I can see in the debugger, that instance is in fact instance of Application, but instanceof does not seem to pass - I am sorry, I don't know how to fix it :(

from ember-modal-dialog.

Windvis avatar Windvis commented on June 20, 2024

I think that check fails because it's an ApplicationInstance instead of an Application? In #315 it was still a normal initializer.

Other than that I have no input since I haven't worked with Engines yet either 😄.

from ember-modal-dialog.

lukemelia avatar lukemelia commented on June 20, 2024

@IgorKvasn I've adjusted #372. Please give it another try.

from ember-modal-dialog.

IgorKvasn avatar IgorKvasn commented on June 20, 2024

thanks a lot - it works with (lazy) engines as well as normal Application

from ember-modal-dialog.

lukemelia avatar lukemelia commented on June 20, 2024

Thanks, merged. This will be in 4.0.0-beta.1

from ember-modal-dialog.

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.