繁体   English   中英

错误 in./src/app/app.component.ts 找不到模块:错误:无法解析 './app.component.css'

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM