I have created an Ionic 5 Angular 10 project and I am importing some animations as I have done for previous projects.
However I am getting the error below. Any ideas what is causing this?
Similar code works fire with another Ionic 5 Angular 9 project I created.
Is this an Angular 10 issue or a typescript issue?
> Error during template compile of ‘AppComponent’ Function calls are
> not supported in decorators but ‘slideInLeftOnEnterAnimation’ was
> called
import { slideInLeftOnEnterAnimation } from 'angular-animations';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
styleUrls: ['app.component.scss'],
animations: [
slideInLeftOnEnterAnimation()
]
})
Ionic CLI : 6.11.11
Ionic Framework : @ionic/angular 5.3.5
@angular-devkit/build-angular : 0.1000.8
@angular-devkit/schematics : 10.0.8
@angular/cli : 10.0.8
@ionic/angular-toolkit : 2.3.3