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

Fix MU for deeply nested classic components #247

Merged
merged 1 commit into from Dec 24, 2018

Conversation

simonihmig
Copy link
Contributor

@simonihmig simonihmig commented Sep 20, 2018

In a MU app consuming a classic addon that exposes nested components, they seem to work as long there is just one "layer" below, like components/foo/bar.js, but not for deeper layered components, like components/foo/bar/baz.js. This fails when resolving, it somehow thinks bar is a collection, and tries to get the default type from undefined. This throws in the place I changed here, so before the fallback is even tried.

In a MU app consuming a classic addon that exposes nested components, they seem to work as long there is just one "layer" below, like components/foo/bar.js, but not for deeper layered components, like components/foo/bar/baz.js. This fails when resolving, it somehow thinks bar is a collection, and tries to get the default type from undefined. This throws in the @glimmer/resolver, so before the fallback is even tried.
@simonihmig
Copy link
Contributor Author

I tried to figure out how to add a test, but didn't really understand how the tests in mu-trees are supposed to work. I can make them run with EMBER_CLI_MODULE_UNIFICATION=true ember t, but they all fail with Error: init missing namespace. Probably because the dummy app is not a MU app?

Also they don't seem to be running in CI at all!?

Glad to add some test coverage once I know how! 😄

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

Successfully merging this pull request may close these issues.

None yet

2 participants