Issues with ember-component-css and ember-cli-typescript
psbanka opened this issue · 3 comments
psbanka commented
Hello. I am having an issue with the latest ember-cli-typescript
and ember-component-css
. I'm getting a
Cannot set property styleNamespace of [object Object] which has only a getter
Sometimes a person needs to use the styleNamespace
attribute within, for example, a computed properties of the component, and it's therefore useful to define styleNamespace: string
within the class so that TypeScript can type-check it properly. This, however, results in the above error.
Any ideas?
psbanka commented
Yes, that is correct
webark commented
you could redefine the whole computed property. Or maybe we could move the setting of this to the init.