Error in the datepicker with angular 6

1

I have the following warning in the angle compiler:

  

WARNING in ./src/css/datepicker.css   (./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./src/css/datepicker.css)                     (Emitted value instead of an instance of Error) autoprefixer: C: \ Users \ Stats \ Desktop \ Project \ BI \ src \ css \ datepicker.css: 7: 1439:   Gradient has outdated direction syntax. New syntax is like to left   instead of right .

Is it a syntax error? It is in this fragment of code:

background-image: -o-linear-gradient(top, #0088cc, #0044cc); background-image: linear-gradient(top, #0088cc, #0044cc); background-repeat: repeat-x;
    
asked by r0b0f0sn0w 01.08.2018 в 00:49
source

1 answer

1

If you translate the error and read the gradient documentation you will find out that you need the prefix to to give the orientation of the gradient.

That way what you are looking for is solved with

background-image: linear-gradient(to bottom, #0088cc, #0044cc); background-repeat: repeat-x;
    
answered by 01.08.2018 в 20:03