Skip to content

create-react-app failing on Windows 10 / node v16.14.2 / npm v8.6 #12277

Answered by sagreenxyz
morenoisidro asked this question in Q&A
Discussion options

You must be logged in to vote

#12278

I'm on Win11 and seeing the same. From the error dump, I believe it is the web-vitals package. I removed all traces of it from index.js (import and the function call at the bottom of the file) and am good to go with npm start leading the to the launch of the live webpage:

src/index/js line 5: remove the "import reportWebVitals from './reportWebVitals';" line
src/index.js line 17: remove the "reportWebVitals();" line

Btw, reportWebVitals is for performance reporting, used here during development.

https://create-react-app.dev/docs/measuring-performance/

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@morenoisidro
Comment options

Answer selected by morenoisidro
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants