Closed floydspace closed 6 years ago
The issue was in the angular2-text-mask
lib. Not sure why. Perhaps because of it has angular 2 dependencies. Will have to fork it.
Anyway, thank you for the great tool.
where this tool i have same problem
@sshraki I mean ng-packagr
is a great tool.
To resolve the issue you should add all your external dependencies to lib.externals
in ng-package.json
. Check each of them in your package.json
one by one to determine which one causes the issue. hope it helps.
As @F1oyd said and following the solution suggested by @avatsaev in the issue https://github.com/dherges/ng-packagr/issues/210 , I was able to build without errors adding angular2-text-mask
to lib.externals in ng-package.json
{
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
"lib": {
"entryFile": "public_api.ts",
"externals": {
"lodash": "./node_modules/lodash/index.js",
"angular2-text-mask": "angular2-text-mask"
}
}
}
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
This action has been performed automatically by a bot.
Type of Issue
Description
What could be the reson of the issue:
How To Reproduce
I'm not sure how. All was done as in ng-packaged repo. Please let me know what provide else.
Version Information
Here is my
package.json
: