This SVGO version is no longer supported. Upgrade to v2.x.x

26.5k views Asked by At

I am running "npx create-react-app experiment" to create a new project and I get this warning. How can I solve it? I have been researching but I get nothing

warning react-scripts > @svgr/webpack > @svgr/plugin-svgo > [email protected]: This SVGO version is no longer supported. Upgrade to v2.x.x.

3

There are 3 answers

1
Sajeel Hassan On BEST ANSWER

I encountered this error while installing dependencies (npm install) for an existing projects

and solved this by installing svgo globally using the command below:

npm install -g svgo

or

npm i -g svgo

hope this helps :)

0
Kayzer161 On

This below command line helped me when I was creating my react app, try it.

npx create-react-app@latest my-app --use-npm

1
ALİ KORKMAZ On

After a long struggle, I solved the problem and I wanted to share it with you.

Firstly , you should sure updated all npm packages. For this you can use "npm outdated" command. After that you updated all packages.
second step , "npx ncu" npx ncu stands for "npm check updates". It is a command line tool used to check the outdated dependencies in a Node.js project. This command will list the packages that have newer versions available and allows you to upgrade them to the latest version.

My error after this command is that I need to update @types/react version. It may be different for you, but you need to complete the all updates with the "npx ncu" command.

The easiest way to solve is change the version that "npx ncu" command says, in "package.json" and install npm

sample my case;
@types/react ^18.0.26 → ^18.0.27

hope it helps