Closed KeithGillette closed 1 year ago
@KeithGillette thanks for the issue. I'm about to go on vacation soon, but if you can get a PR in, I can review and submit tonight.
Thanks for the reply, @danielmoncada. I'd be happy to contribute a PR but I don't have knowledge of publishing Angular libraries, so I'm not sure how the exports
field of the distributed package.json
is generated.
I had the same Problem with @angular-devkit/build-angular@^15.0.0
. I have added the picker.min.css to the projects package.json as described at angular.io -> creating libraries and created a pr -> #176 .
Problem Description
As I reported in #172, attempting to use
@danielmoncada/angular-datetime-picker
with Angular 15 (specifically,@angular-devkit/build-angular@^15.0.0
generates the following build errors onng serve
:Steps to Reproduce
npm install @danielmoncada/angular-datetime-picker
@import "@danielmoncada/angular-datetime-picker/assets/style/picker.min.css";
tosrc/styles.scss
ng serve
Additional Notes
I think the
@angular-devkit/build-angular@^15.0.0
styles processing changes include more strictly enforcing correct package entry points, so the distributed package must include the CSS asset as an entry point in the installedpackage.json
per Angular's Creating Libraries > Managing assets in a library documentation.