Source File Not Found in Angular CLI project

后端 未结 11 1389
臣服心动
臣服心动 2021-01-03 17:50

Hi I have this folders in my project But When I run I get this error

Any idea please?

regards

11条回答
  •  借酒劲吻你
    2021-01-03 18:10

    i also get this error

    export class Product {
    
    constructor(
      public productname: string,
      public qty: string,
      public price:string
    ) {  }
    

    } this my product.ts file

    solution:

    the error is that i have written productname as product-name or product_name this both things are not allowed so i hope this will help you

提交回复
热议问题