본문 바로가기

기타/프로그래밍 관련54

NextJS를 vscode로 Debugging 하는 방법 .vscode/launch.json 생성 { "version": "0.2.0", "configurations": [ { "type": "node", "request": "attach", "name": "Next.js: debug full stack", "skipFiles": ["/**"], "port": 9229 } ] } package.json 수정 "scripts": { "dev": "cross-env NODE_OPTIONS='--inspect' next dev", ... }, 윈도우에서는 cross-env 설치 필요 npm i cross-env !!이제 환경 설정은 끝났음!! npm run dev 실행 후 vscode에서 Ctrl+Shift+D 클릭 해서 Run & Debug 로 이동 Next.js.. 2023. 4. 24.
NextJS 13 에서 DB 연동한 풀스택 만들때 에러 NextJS를 이용하여 mysql에 연동해서 만들때 npm run dev는 잘 작동 되나 npm run build는 ./node_modules/mysql/lib/Connection.js Module not found: Can't resolve 'net' https://nextjs.org/docs/messages/module-not-found Import trace for requested module: ./node_modules/mysql/index.js ./node_modules/mysql/lib/Connection.js Module not found: Can't resolve 'tls' https://nextjs.org/docs/messages/module-not-found Import trace f.. 2023. 3. 24.
gyp ERR! stack Error: Command failed python.EXE npm install 시에 위 에러가 난다면 Python 2.7 버전 64bit 설치 후 npm config set python "파이썬 2.7 경로\python.exe" 하고 npm install 하면 됨 gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "C:\Users\\AppData\Local\Programs\Python\Python37-32\python.EXE", you can set the PYTHON env variable. gyp ERR! stack at PythonFinder.failNoPython (C:\\node_modules\node-gyp\lib\configure.js:483:19) gyp ERR.. 2019. 10. 25.
react+redux+axios 로그인 보호되어 있는 글 입니다. 2019. 10. 18.