Thursday 4 May 2017

Angular 2/4 AoT build: spurious resolution error

I am configuring my Angular 4 app to build using AoT for production, as described in this post and GitHub repository.

There have been lots of errors in this process, mainly pertaining to @types which I have resolved, but there is one curious error that remains when running npm run build:prod:

ERROR in Could not resolve "./app/src/app.module.ts" from "./app/src/app.module.ts".

I have no idea how to solve this, and Googling yields meager results. Can anyone help me out with what this might mean and how to solve it?

I don't know if it's a tsconfig.json error or otherwise. Can anyone help?



via serlingpa

No comments:

Post a Comment