"export 'ɵɵinject' was not found in '@angular/core' : <p>I am getting this error when i tried to use MatToolBar in my angular app. 
In browser I get <code>Uncaught TypeError: Object(...) is not a function</code> and also get warnings in the console: </p>

<pre><code>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'
</code></pre>

<p>How can I resolve this? On github it is a closed issue.</p>
