Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the default Ember router.js fails with 'BUG: Missing owner' #2064

Open
Jopie01 opened this issue Aug 13, 2024 · 0 comments
Open

Using the default Ember router.js fails with 'BUG: Missing owner' #2064

Jopie01 opened this issue Aug 13, 2024 · 0 comments

Comments

@Jopie01
Copy link

Jopie01 commented Aug 13, 2024

It's just a brand new app with

npx ember-cli@latest new new_fancy_app -b @embroider/app-blueprint --pnpm --skip-git --skip-npm

I created manually a new route in the app/routes directory. But then I got a console error

Uncaught (in promise) Error: Assertion Failed: BUG: Missing owner

But I also had something saying expected EngineInstance as owner. Looking at the documentation https://github.com/embroider-build/embroider?tab=readme-ov-file#compatibility I noticed that with lazy engines you have import the router from Embroider rather then from Ember itself. So that's what I did and then it worked perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant