-
Notifications
You must be signed in to change notification settings - Fork 33
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
Errors on helpers with v1.1.0 #12
Comments
Converting it to page-title directly still errors, see the error here: https://gloucesterma.mapgeo.alpha1.appgeo.com/dashboard/ Looks like helpers with a - are treated as components? So the |
Didn't notice that 1.1.0 was out, trying that now.. Nope, still an issue. |
Ah, alpha was already using 1.1 but local was 1.0.2, so the issue is somewhere in the update from 1.0.2 to 1.1.0. |
Can you give me the template that I can use to test? |
@rwjblue here's a repro https://github.com/knownasilya/ab-repro |
Thank you very much for putting together an awesome reproduction, it made tracking things down super easy! |
Can you create a reproduction repo which demonstrates the problem (if so please create a new issue so we can track things down and get it fixed...) |
@rwjblue this is my code issue, sorry for bothering you :( function componentName(modelName, viewType) {
return `meta-attribute/${modelName}/x-${viewType}`;
} if component having this name resolved in app - all ok, if not - I see this issue. Prod/Non-prod behavour - is my logic how to get modelName. I have logic like Issue solved for me by To prevent users from tricky debugging, error stack may be little bit usable, for example it may contain error like - |
Great job tracking this down! Seems like we could write a test that emulates the issue you are seeing (so that we can track it down). I’m thinking of essentially a test like this one but using |
Done, but this is not
But, this issue may be in prod builds due to removed checks. https://github.com/emberjs/ember.js/blob/master/packages/@ember/-internals/glimmer/lib/resolver.ts#L126 |
I get this error:
The component it tries to evaluate is
page-title
, but that addon supports using justtitle
which is transformed via AST. See my comment in that project ember-cli/ember-page-title#123 (comment)I'm testing converting it to an explicit
page-title
.The text was updated successfully, but these errors were encountered: