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.