Ionic 3 refer a new page in app module issue

前端 未结 3 476
你的背包
你的背包 2021-01-03 07:05

I generated a new page in ionic 3 using the generate command. When I try adding it to the app module it throws the following error,

Uncaught Error: Unexpecte         


        
3条回答
  •  日久生厌
    2021-01-03 08:04

    In the declaration section of NgModule you have listed a class 'NewTodo' which requires to be A component, or directive, or pipe. Either remove the class name or add corresponding declarator @Pipe/@Directive/@Component

提交回复
热议问题