-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Routeless engines using components from addons which have class based helper don't work #238
Comments
In your repo, I see you're using ember-source 5.9 -- Does this happen in ember-source 5.4 as well? (I'm curious if the glimmer-vm changes are potentially the cause of the behavior (or the bug has always been there because we didn't really have strict--mode-using things for a while)) |
@NullVoxPopuli I didn't try |
@NullVoxPopuli from what I could see when debugging this when the engine first mounts we lookup the factory for the That factory has the owner saved on itself and it's the current engine instance and seems like when we un-mount and re-mount the engine, the engine instance is a new instance, but we use the same factory for the helper we don't lookup a new factory That's what I'm observing so far |
@NullVoxPopuli the workaround I found is that if I convert the components from So basically the problem is when we have non-strict mode templates inside of strict mode templates it seems. Do you think I need to file an issue to glimmer-vm repo? |
engine-gjt-gts-bug
Repo with minimal reproduction: https://github.com/vstefanovic97/engine-gjs-gts-bug/tree/master
There is a problem when using gjs/gts in engines.
The problem happens when we import a component from a
gjs/gts
file inside of an engine.The component can come from a v1 or v2 addon, if that component uses a class based helper it will error
In our case we have
test-app
which mountengine-foo
which imports afoofoobar
component fromrandom-v2-addon
, thefoofoobar
component uses anor
helper which is a class based helper. The same also happens if component comes from a v1 addon.Reproduction
After the test-app is served click the show engine button, it will work the first time,
but if you close the engine, and open it again it will fail with the following error
The text was updated successfully, but these errors were encountered: