Open chrism opened 6 years ago
Interesting. Perhaps something changed in the recent Ember releases.
I had the same error but my problem was that I was importing Component
from @ember/controller
, not @ember/component'
.
import Component from '@ember/controller';
I should have been using
import Component from '@ember/component';
I had the same error but my problem was that I was importing Controller
from @ember/controller
and extending from it, expecting a Component
. If you convert a controller/tpl to a component, don't forget to actually change it to a component.
I can use perfectly (with ember-decorators)
But when I try with (removing ember-decorators)
I get this error in the console
This is the line of code it refers to
component.trigger('didReceiveAttrs');
I'm using the latest version of canary and my templates are very basic to test with, just simple html without even any properties for now.
The code is available to see here: https://github.com/chrism/emberjs-2018/tree/glimmer-component
Any idea why this might be happening?
Much appreciated, thanks!