I am facing the following error: Module not found: Can’t resolve ‘web-vitals’ in ReactJS. We are going to Learn about All Possible Solutions So Lets Get Start with This Article.
How Module not found: Can’t resolve ‘web-vitals’ Error Occurs?
I am facing the following error.
Module not found: Can't resolve 'web-vitals'
So here I am writing all the possible solutions that I have tried to resolve this error.
How To Solve Module not found: Can’t resolve ‘web-vitals’ Error?
How To Solve Module not found: Can’t resolve ‘web-vitals’ Error?
To Solve Module not found: Can’t resolve ‘web-vitals’ Error You Just need to install web vitals. First of all, open your terminal and run the following command. If You are using Npm run this: npm i web-vitals –save-dev If you are using yarn then run this: yarn add -D web-vitals Now, Your error must be solved.
Module not found: Can’t resolve ‘web-vitals’
To Solve Module not found: Can’t resolve ‘web-vitals’ Error You Just need to install web vitals. First of all, open your terminal and run the following command. If You are using Npm run this: npm i web-vitals –save-dev If you are using yarn then run this: yarn add -D web-vitals Now, Your error must be solved.
Solution 1: install web vitals
You Just need to install web vitals. First of all, open your terminal and run the following command. If You are using Npm run this.
npm i web-vitals --save-dev
If you are using yarn then run this.
yarn add -D web-vitals
Now, Your error must be solved.
Summary
It’s all About this error. Hope We solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read
- Module not found: Can’t resolve ‘@mui/icons-material/FileDownload’
- Module.createRequire is not a function
- npm ERR! code ENOLOCAL npm ERR! Could not install from “@mui\material\utils” as it does not contain a package.json file
- How to go back to previous route in react-router-dom v6?
- Error: HTTP Error: 400, Invalid JSON payload received. Unknown name “skipLog”: Cannot find field