본문 바로가기

에러일지4

[Next.js] Error: listen EACCES: permission denied 0.0.0.0:3000 해결방법 문제상황WSL2와 Ubuntu를 VSCode에서 세팅한 후 개인 프로젝트 Next.js 실행 중에 에러가 발생했습니다.커서나 windsuf, Trai 같은 IDE 사용 후에 서버가 종료되지 않는 에러는 보통 작업관리자에서 Node 프로세스를 직접 종료해주면 해결되는 문제였습니다. 하지만 이번에는 Node를 종료하는 것만으로 해결되지 않았습니다.    해결방법CMD를 관리자 권한으로 실행합니다. net stop winnat net start winnat 이 명령어들로 네트워크 주소 변환(NAT) 서비스를 재시작함으로써 문제를 해결하였습니다.WSL2는 경량 가상 머신을 기반으로 하며, 자체 가상 네트워크 어댑터와 IP 주소를 가지고 있습니다. Windows NAT 서비스는 이 가상 네트워크와 호스트 네트워크.. 2025. 4. 3.
[webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] nextjs14 [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Resolving '../../../../../../../../.vscode/extensions/wallabyjs.console-ninja-1.0.253/out/buildHook/index' in C:\Users\user\Desktop\2023react\shadcn-table\node_modules\next\dist\compiled\webpack for build dependencies doesn't lead to expected result 'c:\Users\user\.vscode\extensions\wallabyjs.console-ninja-1.0.253\out\buildHook\index.j.. 2023. 11. 9.
There are multiple modules with names that only differ in casing. [git bash] ./node_modules/next/dist/client/components/app-router.js There are multiple modules with names that only differ in casing. 문제발생 노트북으로 공부하던 프로젝트를 깃헙에 올리고 데스크탑으로 클론해서 npm run dev 실행시키니 발생한 오류였다. 문제해결 시도 1. rm -rf .next && rm -rf node_modules 로 새로 설치해보았지만 실패 2. node 버젼 문제같아서 nvm 으로 20.9.0 버젼 설치 후 1번 과정 다시 시도 해보았지만 실패 좀 더 낮은 18.18.2도 동일하게 해보았지만 실패 3. 좀 더 구글링 해보았더니 해결책을 찾았다. https://stackoverflow.com.. 2023. 11. 8.
Next.js - Parsing error: Cannot find module 'next/babel' Next.js 세팅하고 css를 tailwind를 세팅하는 중에 에러가 발생했다 해결방법 .eslintrc.json 에서 { "extends": "next/core-web-vitals" } 수정 자신이 babel을 사용하고 있는경우 { "extends": ["next/babel","next/core-web-vitals"] } Next.js 12버젼부터는 babel 대신 swc를 기본적으로 사용하기 때문에 { "extends": ["next/core-web-vitals", "prettier"] } 뒤에 'prettier' 추가만으로 에러메시지는 사라진다. 알게된점 nextjs 12버전부터 babel 대신에 Rust 기반 플랫폼 SWC라는 것을 사용한다 https://nextjs.org/docs/advanc.. 2022. 12. 24.