question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tepmlate Parse Error: 'mat-accordian' is not a known element

See original GitHub issue

Bug, feature request, or proposal:

Bug

What is the expected behavior?

mat-accordian should have been imported automatically when i have imported MatExpansionModule

What is the current behavior?

Gives the error

What are the steps to reproduce?

Providing a StackBlitz/Plunker (or similar) is the best way to get the team to see your issue.
Plunker starter (using on @master): https://goo.gl/uDmqyY
StackBlitz starter (using latest npm release): https://goo.gl/wwnhMV

What is the use-case or motivation for changing an existing behavior?

Documentation or something for version 2.0 should still be available.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 4, Material 2.0.0-beta.12, Windows, TS 2.4

Is there anything else we should know?

I have imported MatExpansionModule via import and included it in imports array.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
crisbetocommented, Dec 10, 2017

Based on your error message, it looks like you spelled it mat-accordian.

3reactions
crisbetocommented, Dec 10, 2017

The element is called mat-accordion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 6 error show <mat-panel-title> is not a known element
I am trying to use Angular Material in Angular 6 project but getting errors. 'mat-panel-title' is not a known element: ...
Read more >
'mat-panel-description' is not a known element: : r/angular
Error occurs in the template of component MainAndSidebarLayoutComponent. mat-panel-description' is not a known element.
Read more >
can't bind to 'mat-dialog-close' since it isn't a known property of ...
Error: Template parse errors: 'mat-dialog-content' is not a known element: 1. If 'mat-dialog-content' is an Angular component, then verify that it is part ......
Read more >
Expansion Panel | Angular Material
MatExpansionPanel extends CdkAccordionItem. This component can be used as a single element to show expandable content, or as one of multiple children of...
Read more >
Template parse errors: : 'xxxComponent' is not a known element
Solved Angular Uncaught Error: Template parse errors : : 'xxxComponent' is not a known element : 3.4K views · 1 year ago ...more ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found