-
-
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
Transpilation issue with this
remaining in function args
#223
Comments
I’m seeing this too in this PR to update to 4.1.1. We have tests that use an extended It shows up in tests as a failed call to a custom assertion. |
Have you also updated:
? V4 of ember-template-imports requires newer babel transpilation settings, provided by the above packages (embroider not required if you aren't using it, fwiw) |
Thanks, should these be mentioned here? I do see it here. I updated each of these in a series of commits ( However I looked for other tests that used a custom test context because I was sure we had them in
I changed the tests to follow that pattern and the problem went away. (Some tests are still failing but seemingly not due to this problem.) Maybe this is more of a workaround than a true fix, but it’s worth trying? |
This bug is covered by embroider-build/content-tag#71 |
should be fixed now |
I have a GTS file like the following;
It's a contrived example, but the point is there's the
someFunction
function in the GTS file that hasthis: SomeContext
intended to be a type hint, to be transpiled away.When debugging the code in browser, I can see that it is present as a real arg.
(I also checked the source without sourcemaps, and can see
this1
is still present in the args)This means the actual named argument
data
becomes undefined in the function.Some findings;
The text was updated successfully, but these errors were encountered: