Estou aprendendo Angular e instalei a minha biblioteca de componentes PrimeNg, mas quando utilizo algum componente, não consigo encontrar segue meu componente
app.component.html
<p-panel >
<ng-template pTemplate="header">
Header content here
</ng-template>
Body Content
<ng-template pTemplate="footer">
Footer content here
</ng-template>
</p-panel>
app.module.ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import {AccordionModule} from 'primeng/accordion';
import {PanelModule} from 'primeng/panel';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AppRoutingModule,
AccordionModule,
PanelModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
angular.json
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"algamoney-ui": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
}
},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/algamoney-ui",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"node_modules/primeng/resources/themes/lara-light-blue/theme.css",
"node_modules/primeng/resources/primeng.min.css",
"node_modules/primeicons/primeicons.css",
"src/styles.scss"
],
"scripts": []
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
}
],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "algamoney-ui:build:production"
},
"development": {
"browserTarget": "algamoney-ui:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "algamoney-ui:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
],
"scripts": []
}
}
}
}
}
}
erro
ERROR Error: Unexpected synthetic listener @panelContent.done found. Please make sure that:
- Either `BrowserAnimationsModule` or `NoopAnimationsModule` are imported in your application.
- There is corresponding configuration for the animation named `@panelContent.done` defined in the `animations` field of the `@Component` decorator (see https://angular.io/api/core/Component#animations).
at checkNoSyntheticProp (platform-browser.mjs:657:15)
at DefaultDomRenderer2.listen (platform-browser.mjs:647:26)
at listenerInternal (core.mjs:15599:40)
at Module.ɵɵlistener (core.mjs:15480:5)
at Panel_Template (primeng-panel.mjs:102:331)
at executeTemplate (core.mjs:12084:9)
at renderView (core.mjs:11906:13)
at renderComponent (core.mjs:13092:5)
at renderChildComponents (core.mjs:11765:9)
at renderView (core.mjs:11931:13)
handleError @ core.mjs:7635
main.ts:12 Error: Unexpected synthetic listener @panelContent.done found. Please make sure that:
- Either `BrowserAnimationsModule` or `NoopAnimationsModule` are imported in your application.
- There is corresponding configuration for the animation named `@panelContent.done` defined in the `animations` field of the `@Component` decorator (see https://angular.io/api/core/Component#animations).
at checkNoSyntheticProp (platform-browser.mjs:657:15)
at DefaultDomRenderer2.listen (platform-browser.mjs:647:26)
at listenerInternal (core.mjs:15599:40)
at Module.ɵɵlistener (core.mjs:15480:5)
at Panel_Template (primeng-panel.mjs:102:331)
at executeTemplate (core.mjs:12084:9)
at renderView (core.mjs:11906:13)
at renderComponent (core.mjs:13092:5)
at renderChildComponents (core.mjs:11765:9)
at renderView (core.mjs:11931:13)
(anônimo) @ main.ts:12