-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[BETA and CANARY] block
is undefined on tagless and blockless components
#13494
Comments
Seems related to local lookup. // @rwjblue |
This was introduced by 869ed30#diff-7d2b815a163f3a57292f65c26e98c051R56. When no block is passed, there is no The first step would be to submit a failing test PR (and also adding a test for a tagless blockless component using local lookup). The fix might be as simple as guarding there, but I suspect to support local lookup in tagless/blockless we will need to tweak the logic. |
Now that we have a simple repro I'll work on fixing this |
Thanks @asakusuma |
I believe this applies to 2.6.0, so it will likely warrant a point release once fixed. |
If anybody else is having this problem, a temporary workaround is to add a tag to your tagless component until the point release lands. |
@rwjblue @asakusuma this can be closed? |
@mixonic yes this can be closed |
Thanks @asakusuma :-) |
Looks like this problem isn't solved yet @asakusuma @rwjblue I get a Log: https://travis-ci.org/miguelcobain/ember-leaflet/jobs/146079848 Any idea? |
@miguelcobain can you provide a failing test PR? We have a test that is supposed to guard this problem but sounds like we are missing a case. |
I'll try to come up with a failing test for ember. Meanwhile, and this is the component being tested: https://github.com/miguelcobain/ember-leaflet/blob/master/addon/components/tile-layer.js which inherits from: https://github.com/miguelcobain/ember-leaflet/blob/master/addon/components/base-layer.js Just in case you spot something odd there. |
I could reproduce the problem in a twiddle: https://ember-twiddle.com/d5f6fc09d9f2a86098012c7304c9e4a6?openFiles=controllers.application.js%2C Click to change the value, and see an error coming up. @GavinJoyce or me will provide a failing test soon. |
I'm getting a
TypeError: Cannot read property 'template' of undefined
becauseblock
is undefined in this line: https://github.com/emberjs/ember.js/blob/master/packages%2Fember-htmlbars%2Flib%2Fhooks%2Fcomponent.js#L57The tests are ok in ember-release and fail on beta and canary channels.
The tests that fail involve tagless blockless components, so I assume the bug is related to that.
Build log: https://travis-ci.org/miguelcobain/ember-leaflet/jobs/129892214
The text was updated successfully, but these errors were encountered: