Trying to set up my first Ember app using TypeScript, I'm facing issues with defining actions. Most tutorials suggest using the @action decorator like this:
import { action } from '@ember-decorators/object';
@action sayHello(){
}
However, I keep encountering an error:
Module '"../../../node_modules/@ember-decorators/object"' does not have an exported member 'action'.
In my package.json, I have specified:
"ember-decorators": "^6.0.0",
Could someone please point out what I might be missing?
Appreciate any help.