close

[Solved] Module not found: Can’t resolve ‘web-vitals’

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?

  1. 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.

  2. 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

Leave a Comment