找不到模块。或其相应类型的声明。TS(2307)
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 { }
我是一个创建购物车,我所有的零件都在运行
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请验证您的导入路径,(保持相对,例如:./或../)。
Please verify your import paths, ( keep it relative, ex: ./ or ../ ).