Issue
I am getting this error when i tried to use MatToolBar in my angular app.
In browser I get Uncaught TypeError: Object(...) is not a function and also get warnings in the console:
WARNING in ./node_modules/@angular/cdk/esm5/text-field.es5.js 146:151-159
"export 'ɵɵinject' was not found in '@angular/core'
WARNING in ./node_modules/@angular/cdk/esm5/a11y.es5.js 2324:206-214
"export 'ɵɵinject' was not found in '@angular/core'
How can I resolve this? On github it is a closed issue.
Solution
I have resolved it, I just updated the dependency of angular material to 7 and angular version to 7.3.2 and it worked.
Answered By - user11163978
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.