create-react-app giving warning about golden age of prefix-less CSS, how to fix?

Viewed 1998

Greetings, time traveller. We are in the golden age of prefix-less CSS, where Autoprefixer is no longer needed for your stylesheet.

Other solution talk about updating the docs directly but that didn't work, plus this is a create-react-app, is there a way for that?

1 Answers

Update the react-scripts used by create-react-app script for that project with

npm install react-scripts@latest

For NEW applications this is not a problem as

npx create-react-app my-app

will get the latest react-scripts version

So basically this is only a problem for older create-react-app version (i.e. all apps as they age).

Related