-
Notifications
You must be signed in to change notification settings - Fork 25
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
components are prefixed with this
for complex structured apps
#45
Comments
Hi there! Thanks for the report! |
@suchitadoshi1987 - Lets make a small reproduction repo (should use in-repo addons, ember-holy-futuristic-template-namespacing-batman, and components inside nested folders), should be a fun little exercise. |
@rwjblue @NullVoxPopuli Here is an example which has a couple of in-repo-addons as well as usage of ember-holy-futuristic-template-namespacing-batman syntax. My hunch is that this is more of an issue with the missing support for the |
Ya, makes sense. I think our module mapping needs to know what $ does in this context. Seems like this is where we are building up a list of the "non-this" things: ember-no-implicit-this-codemod/transforms/no-implicit-this/helpers/plugin.js Lines 105 to 124 in 2101457
It seems like it is pushing the component name directly there (perhaps still including the root path?), and we need to ensure $ usage is also accommodated... |
I'm seeing this issue too. It's taking components like this: |
@rwwagner90 that may be a different issue.
|
@NullVoxPopuli I am on Mac, and that component is not from an addon. However, we do use pods for components, so it's possible it did not find those components for that reason. |
Ah, yup. Pods would do it. We need to update telemetry helpers to support pods and co-location. |
@NullVoxPopuli so pods should work now? |
@rwwagner90 I don't think so. I think GitHub auto-closed this issue by mistake. |
pods support is tracked in #36 and the batman addon is supported now, so I'll go ahead and close this issue again :) |
For an app that has multiple apps co-located or if there are components invoked from addons that reside outside of the project, the component gets prefixed with
this
when running the codemod.The text was updated successfully, but these errors were encountered: