首页 > 解决方案 > TypeError:record.factory 不是 Ionic 中的函数

问题描述

运行 ionic serve 命令时,出现以下错误。

标签: angularionic-framework

解决方案


你需要评论

@Injectable()在您的路由或注入其他

例子

//   @Injectable()  comment this code

 @NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule],
providers: [] 
 })

推荐阅读