Home > front end >  Cannot find module './cart-product.component' or its corresponding type declarations.ts(23
Cannot find module './cart-product.component' or its corresponding type declarations.ts(23

Time:05-25

import { AppComponent } from './app.component';
import { ProductListComponent } from './Product-list.component';
 import { ShoppingCartComponent } from './Shopping-cart.component';
 import {ProductComponent}  from './Product.component';
 import {CartProductComponent} from './Cart-product.component';

@NgModule({
  imports:      [ BrowserModule, FormsModule ],
  declarations: [ AppComponent, ProductListComponent, ShoppingCartComponent, ProductComponent, CartProductComponent],
  bootstrap:    [ AppComponent ]
})
export class AppModule { }

I am a creating a cart all my componets are running but its still give me hard time

CodePudding user response:

Please verify your import paths, ( keep it relative, ex: ./ or ../ ).

CodePudding user response:

Let's put the structure here and we can know what's happening.

  • Related