728x90
yarn을 통해 react를 실행했더니 오류가 발생했다.
Module not found: Can't resolve 'web-vitals'
아주 간단한 해결 방법
- 터미널에 아래와 같이 입력한 뒤 다시 yarn start를 입력하면 compiled successfully를 확인 할 수 있다 :)
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
'개발일지 > React' 카테고리의 다른 글
[React 리액트] 파이어베이스 오류 Attempted import error: 'firebase/app' does not contain a default export (imported as 'firebase'). (0) | 2022.11.05 |
---|---|
[React 리액트] Cannot read property 'map' of undefined 오류 해결 (0) | 2022.10.13 |
[React 리액트] useState (0) | 2022.08.25 |
[React 리액트] CSS 적용 (0) | 2022.08.13 |
[React 리액트] Props / Children (0) | 2022.08.12 |