Angular 6: Cannot read property 'runOutsideAngular' of undefined
问题 I have created nav-bar using cli through this command ng g @angular/material:material-nav --name=version-nav and imported in my component as <app-version-nav></app-version-nav> and got this error any helpful suggestion would be highly appreciated 回答1: You can change target to es5 in tsconfig.js { "compileOnSave": false, "compilerOptions": { "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "module": "es2015", "moduleResolution": "node",