Error during build Angular App

Hello,

I deployed an Angular app, through Gitlab and when I git push I get error:

9:21:04 PM: ERROR in app/views/home/home.module.ts(59,27): Error during template compile of 'HomeModule’
9:21:04 PM: Could not resolve ./core/core.component relative to [object Object]. in 'HomeRoutes’
9:21:04 PM: ‘HomeRoutes’ contains the error at app/views/home/home.routing.ts(14,30).
9:21:04 PM: src/app/views/home/home.routing.ts(7,29): error TS2307: Cannot find module ‘./core/core.component’.
9:21:04 PM: src/app/views/home/home.module.ts(45,29): error TS2307: Cannot find module ‘./core/core.component’.

Although, the app passes the ng build --prod and runs properly, locally. No errors. Can you help me?

Hi there,

did you give these two articles a read through?

Hi Perry,

Not yet.

Thanks a lot! :slightly_smiling_face:

Somehow, the last push deployed properly, without any code changes. Thanks, anyway.

how strange. Well, glad it is working now! If you see this problem again, please let us know!

1 Like