apn*_*nux 7 html sass angular-material angular scss-mixins
我尝试在 Angular 中使用 @include media-breakpoint-up 但在编译时出现此错误
\n引导程序5.1.13
\n角度 CLI:10.2.4
\n节点:14.17.2
\n操作系统:win32 x64
\n角度:10.2.5
\nERROR in Module build failed (from ./node_modules/sass-loader/dist/cjs.js):\nSassError: Undefined mixin.\n \xe2\x95\xb7\n6 \xe2\x94\x82 \xe2\x94\x8c @include media-breakpoint-down(md) {\n7 \xe2\x94\x82 \xe2\x94\x82 width: 100%;\n8 \xe2\x94\x82 \xe2\x94\x82 margin: 0 10px 0 10px;\n9 \xe2\x94\x82 \xe2\x94\x94 }\nRun Code Online (Sandbox Code Playgroud)\n风格类
\n.mat-form-field{\n width: 460px;\n\n @include media-breakpoint-down(md) {\n width: 100%;\n margin: 0 10px 0 10px;\n }\n } \nRun Code Online (Sandbox Code Playgroud)\n导入 main.scss\n@import '~bootstrap/scss/bootstrap-utilities';
html中的bootrap类正常工作
\n哪里错了?\n谢谢
\n我尝试导入每个引导类(按正确的顺序),我尝试重新启动 Angular ng 服务但从未工作
\nibr*_*mgb 12
@import 'node_modules/bootstrap/scss/functions';
@import 'node_modules/bootstrap/scss/variables';
@import 'node_modules/bootstrap/scss/mixins';
Run Code Online (Sandbox Code Playgroud)
需要这些进口才能发挥作用
| 归档时间: |
|
| 查看次数: |
7999 次 |
| 最近记录: |