使用Angular 8,在构建应用程序时,我们遇到以下错误:
app/modules/admin-module/pages/editor/editor.component.ts:6:27 - error TS2306:
File ...node_modules/@angular/material/index.d.ts' is not a module.
使用Angular 8,在构建应用程序时,我们遇到以下错误:
app/modules/admin-module/pages/editor/editor.component.ts:6:27 - error TS2306:
File ...node_modules/@angular/material/index.d.ts' is not a module.
update: please check the answer of Jeff Gilliland below for updated solution
看起来就像this thread says岁的时候发布了一个突破性的变化:
组件不能再通过"@angular/material"导入.使用
Update:可以确认,这就是问题所在.在把@angular/material@9.0...
级降到@angular/material@7.3.2
级之后,我们可以暂时解决这个问题.我想我们需要更新一个长期解决方案的项目.