![](/img/trans.png)
[英]Error: Module not found: Error: Can't resolve src/app/app.component.css?ngResource Angular
[英]ERROR in ./src/app/app.component.ts Module not found: Error: Can't resolve './app.component.css'
app.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'user-service-client';
}
Angular CLI 版本:8.0.6
如何解決此錯誤:
ERROR in ./src/app/app.component.ts
Module not found: Error: Can't resolve './app.compone
確保 app.module setup 或 Module 有聲明
或者根據 angular 指南,項目結構內部有問題...
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.