danielmoncada/date-time-picker

CSS tilde import example in `README.md` outdated

KeithGillette opened this issue · 3 comments

Step 2 of the How to Use section of the README.md specifies adding styles to styles.scss with the following code:

@import "~@danielmoncada/angular-datetime-picker/assets/style/picker.min.css";

However, tilde imports have been deprecated since Angular 13 and support has been removed entirely in Angular 15.

@KeithGillette I am facing the same issue with Angular 15 because of which the styling for the picker is not working.
@danielmoncada can we please get a solution for this?

Can you not just use a direct path to the node_modules folder instead of using the tilde?

@import "./node_modules/@danielmoncada/angular-datetime-picker/assets/style/picker.min.css";

@danielmoncada — you don't even need the ./node_modules in the path. The import path just shouldn't have a tilde in it anymore, so the example in README.md should be updated to:

https://www.linkedin.com/company/universal-e-business-solutions/