Mixins may not be defined

新手上路,请多包涵

Mixins may not be defined within control directives or other mixins.

style.css

@import 'theme.scss';
html,body,md-sidenav-container, .site{
    width: 100%;
    height: 100%;
    margin: 0;
}
.site{
    display: flex;
    flex-direction: column;
}
main{
    flex: 1;
}

.fill-remaining-space {
    flex:1 1 auto;
}
.full-width{
    width: 100%
}

theme.scss

@import '~@angular/material/theming';

报错及代码

代码

阅读 2.9k
2 个回答
新手上路,请多包涵

我也遇到这个了!导入了scss文件就不行了,是不是不支持这种格式啊?

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏