frustrated-dev
frustrated-dev

Reputation: 451

Angular Error: "mat-form-field' is not a known element"

Im using stackblitz code editor and im trying to implement calendar in my app using angular materials but got this error.

enter image description here

here's the link https://stackblitz.com/edit/angular-ivy-2ucboy?file=src/app/app.component.ts

Upvotes: 0

Views: 297

Answers (1)

ViqMontana
ViqMontana

Reputation: 5688

For some reason, you are bootstrapping your app in main.ts? That's why your actual app.module.ts file is redundant. You need to import the relevant modules into your main.ts file, as that is where your AppModule is declared.

See this working demo.

Upvotes: 2

Related Questions