我在 Stackblitz 上一直使用 Angular Material,通常我会导入一个厨房水槽模块,一切正常。
现在我试图只导入 Angular Material Button Module,我得到了错误:
Error in src/app/app.component.ts (8:14)
Unable to import component MatButton.
The symbol is not exported from /turbo_modules/@angular/[email protected]/button/button-module.d.ts (module '@angular/material/button/button-module').
这是 Stackblitz:https ://stackblitz.com/edit/angular-ivy-wxvebj?file=src%2Fapp%2Fapp.module.ts
有任何想法吗?
您正在MatButtonModule
从@angular/material/button/button-module
何时导入@angular/material/button
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句