https://stackoverflow.com/a/72336399/5328663 Error: req#logout requires a callback function can't able to find solution of this tried everything, i am just new in using passport. Error: req#logout requires a callback function i have coded this before but that time i have not received any... stackoverflow.com app.post('/logout', function(req, res, next) { req.logout(function(err) { if (err) { ret..
프로젝트의 정보를 정의, 의존하는 패키지 버전 정보 { "name": "day04", // 이름 "version": "1.0.0",// 버전 "main": "index.js",// 주로 쓰는 js "license": "MIT",// 라이센스 "type": "module",// module로 하면 import를 쓸 수 있다. 옛날 것 : commonjs "scripts": { "dev": "nodemon index.js"// 보통 yarn dev로 cmd에서 실행한다. }, "dependencies": {//확장한 것 "axios": "^0.24.0",// axios "cors": "^2.8.5",// cors : 프론트 백엔드 다를 때 에러나는데 이걸 써야 그 에러 해결 "express": "^4.17...

Yarn을 쓴 이유 : node를 쓰면서 import 오류가 떴다. yarn을 쓰면 된다고 했다. yarn을 써보자. ※윈도우에선 cmd로 해야 한다. powershell은 권한 오류가 뜬다 import {checkValidationPhone, getToken, sendToken2SMS} from './phone.js' ^^^^^^ SyntaxError: Cannot use import statement outside a module at Object.compileFunction (node:vm:352:18) at wrapSafe (node:internal/modules/cjs/loader:1031:15) at Module._compile (node:internal/modules/cjs/loader:10..
- Total
- Today
- Yesterday
- Spread
- elasticsearch
- Rest
- 백틱
- 도커
- function
- 에러
- error
- 공부법
- js
- 콜백
- docker
- 프로그래머스
- Console
- postman
- yarn
- NPM
- 호이스팅
- arrow
- 코드캠프
- 명령어
- arrowfunction
- GraphQL
- Callback
- 독커
- nodemon
- axios
- 코딩습관
- Playground
- typeorm
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |