Can't resolve 'web-vitals' in react-Project/src
i just get started with react and as soon as i create new react app using create-react-app tool it gives an error without any modification of the project code
This error happened to me for the first time today. This is new... And as I am new to react (I just started using it a couple of month ago) I don't know how to fix it...
yes laladiaz, actually the whole create-react-app tool is no longer supported even by react team itself, as you might see in the new documentation version on react https://react.dev, instead, it encourages us to use create-next-app or vite, personally, I like how simple vite is.
Thank you Oussama!!! I just saw the new documentation came out yesterday and I haven't check it out yet! I really appreciate the info... also, I will check vite out!! 🌟
You need to install web vitals. Open your terminal and run the following command:
npm i web-vitals --save-dev
thanks harley-dane,It worked for me
@harley-dane thank you!
Thank you so much Harley!
Thank You Harley, it worked for me. And thanks Oussama for pointing out the news on the new update, was stuck at that stage and couldn't get it to work.
Thanks @harley-dane npm i web-vitals --save-dev this is working, issue resolved
@harley-dane thank you so much it's work's