You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error occurred:
- While rendering:
-top-level
application
[runtime.js:4857](http://localhost:4200/assets/@glimmer/runtime.js)
Uncaught Error: Attempted to load a component, but there wasn't a component manager associated with the definition. The definition was: Promise
getInternalComponentManager manager.js:425
lookupComponent Ember
// app/components/demo.jsimportComponentfrom'@glimmer/component';// could be any library thoimport{two}from'./top-level-await';exportdefaultclassDemoextendsComponent{two=two;}
{{this.two}}{{yield}}
// app/components/top-level-await.jsexportconsttwo=2;// This could be anything, in a library, etc.// top-level await is a spec-featureawaitnewPromise((resolve)=>resolve());
The text was updated successfully, but these errors were encountered:
This needs importSyncImplmementation = 'eager' which in turn really needs strict es modules if we want that to work across the ecosystem.
If you patch the repro to use eager, you hit other problems, like
ember-fetch contains broken code that was lazy before but becomes eager and crashes
when using eager mode, embroider seems to treat require() in ember-resolver as a build-time require when it should still be a run-time require. This seems like a possible legit embroider bug.
Repro: https://github.com/NullVoxPopuli/embroider-repro-top-level-await
application.hbs
The in-app component:
The text was updated successfully, but these errors were encountered: