我目前正在尝试使用 Angular 9 RC6 运行一个项目。不幸的是,它可能无法使用Angular Ivy进行编译,可能是由于其中之一的依赖关系。所以我必须禁用常春藤。它使用Angular Material,所有项目样式文件均为.scss
文件。构建和投放成功运行。
但是当我服务(或构建并服务)网站时,没有应用与组件相关的样式。尽管它正确使用了Angular Material样式。
该项目由Nrwl / Nx的create-nx-workspace
启动。在 angular.json 文件中,有原理图
"projects": {
"myProject": {
"projectType": "application",
"schematics": {
"@nrwl/angular:component": {
"style": "scss"
}
}
}
}
构建者使用@angular-devkit/build-angular:browser
进行构建,或者使用@angular-devkit/build-angular:dev-server
进行服务。
这是我的Angular依赖项(在devDependencies空行之后):
"@angular/animations": "~9.0.0-rc.6",
"@angular/cdk": "^9.0.0-rc.5",
"@angular/common": "~9.0.0-rc.6",
"@angular/compiler": "~9.0.0-rc.6",
"@angular/core": "~9.0.0-rc.6",
"@angular/fire": "^5.3.0-rc.2",
"@angular/forms": "~9.0.0-rc.6",
"@angular/material": "^9.0.0-rc.5",
"@angular/platform-browser": "~9.0.0-rc.6",
"@angular/platform-browser-dynamic": "~9.0.0-rc.6",
"@angular/platform-server": "^9.0.0-rc.6",
"@angular/router": "~9.0.0-rc.6",
"@angular/service-worker": "^9.0.0-rc.6",
"@angular-devkit/build-angular": "~0.900.0-rc.6",
"@angular/cli": "~9.0.0-rc.6",
"@angular/compiler-cli": "~9.0.0-rc.6",
"@angular/language-service": "~9.0.0-rc.6",
您是否知道我如何调试此问题?请让我知道信息是否丢失。
干杯,谢谢!