728x90
아무런 코드 추가 없이 기본 react 설치 후 npm start를 하니 해당 오류 발생
패키지가 꼬여서 발생한 문제
npm i web-vitals --save-dev
명령어를 통해 패키지를 없는 패키지를 다운받으니 문제 해결. 혹은 모듈을 전부 다시 받아도 해결된다고 합니다.
https://stackoverflow.com/questions/65396568/react-js-npm-start-shows-failed-to-compile-web-vitals
React JS npm start shows failed to compile web-vitals
I'm getting the error: failed to compile -/src/reportWebVitals.js Module not found: Can't resolve 'web-vitals'. Since new to react JS, could not find what happened. Here is the reportWebVitals.JS...
stackoverflow.com
728x90
'공부' 카테고리의 다른 글
[IOS] setValue:forUndefinedKey : this class is not key value coding-compliant for the key ... (0) | 2025.03.31 |
---|---|
[React] npm error code ENOENT (0) | 2025.02.04 |
Unexpected method 'appcast' called on Cask adoptopenjdk 에러 (0) | 2025.01.10 |
[알고리즘] 허프만 코드란? (0) | 2023.09.12 |
[Coding] 직렬화(Serialization), 역직렬화(Deserialization)란? (0) | 2022.06.04 |