[Fixed] Date-picker styles not working after production build in Angular 4

Issue

recently I created a build of my Angular5 app in which I used ngx-bootstrap to show datepicker and modals. It was working very well before production, but after production, build seems like it lost its styling.

please check attached image…

enter image description here

I followed all the implementation steps again, but nothing worked.

Please help to resolve this issue. Thank you so much.

Solution

Finally, I found a solution.

I just added ngx-bootstrap CSS into angular-cli.json

angular-cli.json

"styles": [
    "styles.css",
    "../node_modules/ngx-bootstrap/datepicker/bs-datepicker.css"],

and it worked for me. Thanks for attention.

Leave a Reply

(*) Required, Your email will not be published