Error: Cannot determine the module for component Tutorial!

Hi Guys,

I’ve updated my project to the RC1 and now when I build my app for ios I receive an error from ngc:

[16:24:54]  Error: Cannot determine the module for component Tutorial!                                                             
[16:24:54]  ngc failed                                                                                                             
[16:24:54]  ionic-app-script task: "build"                                                                                         
[16:24:54]  Error: Error   

Any Help, please?

1 Like

Ok, I’ve found, just import all your pages in your app.module (ALL PAGES!) and putting them in declarations and entryComponents or it will not build!

2 Likes

I had same problem. This solution works but I think this is a bug in the build script. You should be allowed to have pages in the project that aren’t included in the module.

2 Likes

See also Error trying to build for Android or ios