본문 바로가기

Error5

[React] create-react-app dotenv 에러 Module not found: Error: Can't resolve 'os' in Module not found: Error: Can't resolve 'os' in '/Users/Desktop/bearu/node_modules/dotenv/lib' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. . . . npm run build 를 하다 에러메세지가 떴다. 원인 create-react-app 으로 생성된 react 앱은 기본적으로 dotenv가 내장되어 있어 따로 적어줄 필요없다. 해결 방법 import .. 2023. 12. 27.
[Node.js] npm 에러 해결 (cache) npm ERR! code EACCES npm ERR! syscall open npm ERR! path /Users/.npm/_cacache/index-v5/b3/... npm ERR! errno EACCES npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 501:20 "/Users/.npm" npm ERR! A complete log of thi.. 2023. 12. 27.
[React] Module not found: Error: Can't resolve 'web-vitals' Module not found: Error: Can't resolve 'web-vitals' npm run start 를 했는데 에러메세지가 떴다. 원인 web-vitals 패키지가 없기 때문이다. (devDependencies에 web-vitals 패키지가 설치되어 있는지 확인해 봐야한다.) 해결 방법 npm install web-vitals 해결 완료!! 2023. 12. 22.
[React] Error: useRoutes() may be used only in the context of a <Router> component. 페이지 기본 틀 잡는 중에 에러가 발생하였다. 원인 의 위치가 잘못되었다. 해결 방법 위치 확인 후 제대로 위치 잡아준다. (혹시모르니 스펠링도 확인해주기!!) 해결 완료!! 2023. 12. 22.
[MySQL] Error: ER_DATA_TOO_LONG: Data too long for column '***' at row 1출처: https://ellie-kang.tistory.com/entry/MySQL-Error-ERDATATOOLONG-Data-too-long-for-column-at-row-1 [ELLIE TOUR WORLD:티스토리] MySQL 테이블을 만들고 작업을 하던 중 위의 에러가 발생하였다. 원인 넣고자 하는 데이터의 크기가 내가 설정해준 테이블의 column 크기보다 클 경우에 에러가 발생한다. 해결 방법 column의 크기를 다시 더 크게 설정해주면 된다. ALTER TABLE 바꾸고자하는내용을담고있는테이블이름 MODIFY COLUMN 컬럼이름 다시설정; 2023. 12. 22.
반응형