danielmoncada / date-time-picker

Angular Date Time Picker (Responsive Design)
https://daniel-projects.firebaseapp.com/owlng/date-time-picker
MIT License
137 stars 59 forks source link

CSS tilde import example in `README.md` outdated #174

Closed KeithGillette closed 1 year ago

KeithGillette commented 1 year ago

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.

nitinchotia2014 commented 1 year ago

@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?

danielmoncada commented 1 year ago

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";
KeithGillette commented 1 year ago

@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/