-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Every component don't work #13614
Comments
You need to add the Module that integrate the component that you want to use. |
@SoyDiego I inserted the ButtonModule but it still doesn't work |
Share a stackblitz, like this is impossible help you. |
`import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; @NgModule({ ], |
`import { NgModule } from '@angular/core'; const routes: Routes = [ @NgModule({ |
This is vehicle.component.html belongs to vehicle.module |
Describe the bug
For every component of prime ng I get this error.
`Error: src/app/dashboard/vehicle/vehicle/vehicle.component.html:4:5 - error NG8001: 'p-button' is not a known element:
4
~~~~~~~~~~~~~~~~~~~~~~~~
src/app/dashboard/vehicle/vehicle/vehicle.component.ts:9:16
9 templateUrl: './vehicle.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component VehicleComponent.
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/
**
× Failed to compile.`
I am using the latest version of angular and prime ng.
Environment
Windows 10, Visual studio.
Reproducer
No response
Angular version
16.1.7
PrimeNG version
16.1.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
9.6.7
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: