简体   繁体   中英

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 Version: 8.0.6

How to resolve this error:

ERROR in ./src/app/app.component.ts
Module not found: Error: Can't resolve './app.compone

Make sure app.module setup Or Module have declaration

Or something wrong inside project structure as per angular guidelines...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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