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
The "mat-" prefix cannot be used in ng-material v1 compatibility mode. It was used on an "mat-form-field" element. #923
Comments
Please use the issue template and add your locally installed versions |
@jotatoledo , done. |
With material beta.11 you can use covalent beta.7, and beware that with those versions you cannot use mat-* anywhere in your templates. Apparently you did that somewhere and the error was triggered |
After update to a lower version "beta.7" searched all my project files for a "mat" keyword but found none..I get hard times to start using covalent components. just sending logs, do you have another guess what can go wrong here?
|
I have same problem, do you find a solution ? |
use compatibility module if you still want to use md- prefix like this if you want to use new mat- prefix which is good you can use NoConflictStyleCompatibilityMode like this found this when i was check for changes in source, they should mention this somewhere |
Covalent UI needs to be updated with latest material changes. |
It was already updated, read the changelogs from both material and covalent |
I only use mat- prefix and i still have this error, even with NoConflictStyleCompatibilityMode. |
search your code for md- and replace it with mat- . I think there still in your code some component referenced by md- |
Thanks @jatkeshave, the NoConflictStyleCompatibilityMode thing solved the issue for me. so as @MROALI suggested probably some of other external components the app imported had these prefixes. Thanks again for you quick response! very helpful! |
@megetron close |
Closing this since now everything is using NOTE: searching for |
I/m facing the same issue |
Read the thread rijomonr |
Thanks for your awsers. My problem was due to Md2 package. |
For those who are using both md2 and material2
@NgModule({
imports: [
// ...
Md2Module,
NoConflictStyleCompatibilityMode // from 'md2'
]
} For more infomation, refer to |
Adding |
What is the expected behaviour?
Trying to integrate covalent's aitocomplete into a project using SystemJS and getting this:
ERROR Error: Uncaught (in promise): Error: The "mat-" prefix cannot be used in ng-material v1 compatibility mode. It was used on an "mat-form-field" element.
Error: The "mat-" prefix cannot be used in ng-material v1 compatibility mode. It was used on an "mat-form-field" element.
I did not Include the core and theme styles in my scss file yet (would like to see a default behaviour on app).
Which version of Angular and Material, and which browser and OS does this issue affect?
angular 4.1.0 material 2.0.0-beta.11
Did this work in previous versions of Angular / Material?
I am just a beginner with covalent so not sure about previous versions.
The text was updated successfully, but these errors were encountered: