GithubHelp home page GithubHelp logo

Comments (5)

buschtoens avatar buschtoens commented on June 26, 2024

Can you maybe provide more details on how to reproduce this or ideally a repo which shows the error?

from ember-lazy-mount.

buschtoens avatar buschtoens commented on June 26, 2024

I published a new release, which may fix this issue via d30931e. Can you give it a try?

from ember-lazy-mount.

thec0keman avatar thec0keman commented on June 26, 2024

Apologies for letting this go stale.

A real simple example:

{{lazy-mount 'an-engine-that-does-not-exist'}} -> silent failure
{{mount 'an-engine-that-does-not-exist'}} -> raises an exception the engine 'an-engine-that-does-not-exist' can not be found.

(Although 'does not exist' may not be accurate... but better: that isn't set up correctly yet)

from ember-lazy-mount.

buschtoens avatar buschtoens commented on June 26, 2024

This is actually intended behavior. If the engine cannot be loaded, e.g. because it does not exist, the error is yielded to the component block.

test('it shows an error right away for a non-existing engine', async function(assert) {
await render(hbs`
{{#lazy-mount "not-an-engine" as |e|}}
isLoading: {{e.isLoading}};
error: {{e.error}};
{{/lazy-mount}}
`);
assert
.dom()
.hasText(
'isLoading: false; error: Error: Assertion Failed: No bundle with name "not-an-engine" exists in the asset manifest.;'
);
});

Can you check, whether this works as expected?

#93 is about making this info available as a hook as well, so you can trigger something in response to a failure.

from ember-lazy-mount.

thec0keman avatar thec0keman commented on June 26, 2024

Oh interesting, I didn't know about this! Okay, I think this should be closed then.

Thanks!

from ember-lazy-mount.

Related Issues (8)

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.