I did upgrade to angular 12 but I'm not able to build libraries anymore. =
angular: v12.0.3
, ng-packagr: 12.0.0
I'm running the following command ng build mylib --prod
and get the following error
Building Angular Package
ERROR: Debug Failure. False expression.
An unhandled exception occurred: Debug Failure. False expression.
See "C:\Users\myuser\AppData\Local\Temp\ng-ql91km\angular-errors.log" for further details.
I then opened the ng-package.json
file and saw that I had a warning
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
// ...
}
Unable to load schema from 'c:\Users\myUser\Documents\projects\my-project\my-project-name\node_modules\ng-packagr\ng-package.schema.json': ENOENT: no such file or directory, open 'c:\Users\myUser\Documents\projects\my-project\my-project-name\node_modules\ng-packagr\ng-package.schema.json'.
I did control and the file does exists. I also did try to reinstall every module but didn't fix it.
I have the following folder structure
Does somebody face the same problem?