当项目文件夹命名为root_project时,一切正常
root_project
└── projects
└── my-lib
但是如果我将文件夹名称更改为node_modules
node_modules
└── projects
└── my-lib
我遇到下一个错误:
Building Angular Package
******************************************************************************
It is not recommended to publish Ivy libraries to NPM repositories.
Read more here: https://v9.angular.io/guide/ivy#maintaining-library-compatibility
******************************************************************************
------------------------------------------------------------------------------
Building entry point 'my-lib'
------------------------------------------------------------------------------
Compiling TypeScript sources through ngc
Bundling to FESM2015
ERROR: Could not resolve './lib' from dist/my-lib/esm2015/public-api.js
An unhandled exception occurred: Could not resolve './lib' from dist/my-lib/esm2015/public-api.js
See "/tmp/ng-WPQygP/angular-errors.log" for further details.