Bug with `scss` reference during `aot` build
See original GitHub issueI’m submitting a … (check one with “x”)
[x] bug report => search github for a similar issue or PR before submitting
Current behavior
With the SCSS
refactor https://github.com/swimlane/ngx-charts/commit/034d9774f86abfe9b64678dbaf6876fadb7a9665, lots of scss
files were created and referenced in the ts
files (which is fine).
But when the module is published, that reference is still there and no scss
file released.
https://github.com/swimlane/ngx-charts/blob/master/release/common/tooltip/tooltip.component.js#L72
So its giving the following errors:
Expected behavior
scss
files should be compiled
and the css
should be inlined
during the build / publishing process in both component.js
and umd
files. (ideally)
OR
scss
files should be released too (i think this would work also but it would be a workaround, since if somebody gets a hold of just the umd
file, it still holds references in it)
Reproduction of the problem
Happens when trying to use aot
with the angular-cli
. (Didnt use to happen on previous releases since css
was added differently)
Please tell us about your environment:
-
angular-cli: 1.0.0-beta.26
-
ngx-charts version: 4.0.1
-
Angular version: 2.4.5
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (3 by maintainers)
Top GitHub Comments
Packaging libraries for external usage in Angular2 is nearly impossible right now.
same. my workaround is to simply copy
over to release