我在 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/material@13.3.5/button/button-module.d.ts (module '@angular/material/button/button-module').
這是 Stackblitz: https ://stackblitz.com/edit/angular-ivy-wxvebj?file=src/app/app.module.ts
有任何想法嗎?
uj5u.com熱心網友回復:
您應該MatButtonModule從何時匯入@angular/material/button/button-module@angular/material/button
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/468666.html
標籤:javascript 有角度的 打字稿 角材料
