작성
·
283
0
C:\Users\mine\Desktop\boilerplate-mern-stack-master>npm run dev
> react-boiler-plate@1.0.0 dev
> concurrently "npm run backend" "npm run start --prefix client"
[0]
[0] > react-boiler-plate@1.0.0 backend
[0] > nodemon server/index.js
[0]
[1]
[1] > client@0.1.0 start
[1] > react-scripts start
[1]
[0] [nodemon] 1.19.4
[0] [nodemon] to restart at any time, enter `rs`
[0] [nodemon] watching dir(s): *.*
[0] [nodemon] watching extensions: js,mjs,json
[0] [nodemon] starting `node server/index.js`
[0] C:\Users\mine\Desktop\boilerplate-mern-stack-master\node_modules\express\lib\router\index.js:458
[0] throw new TypeError('Router.use() requires a middleware function but got a ' + gettype(fn))
[0] ^
[0]
[0] TypeError: Router.use() requires a middleware function but got a Object
[0] at Function.use (C:\Users\mine\Desktop\boilerplate-mern-stack-master\node_modules\express\lib\router\index.js:458:13)
[0] at Function.<anonymous> (C:\Users\mine\Desktop\boilerplate-mern-stack-master\node_modules\express\lib\application.js:220:21)
[0] at Array.forEach (<anonymous>)
[0] at Function.use (C:\Users\mine\Desktop\boilerplate-mern-stack-master\node_modules\express\lib\application.js:217:7)
[0] at Object.<anonymous> (C:\Users\mine\Desktop\boilerplate-mern-stack-master\server\index.js:34:5)
[0] at Module._compile (node:internal/modules/cjs/loader:1101:14)
[0] at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
[0] at Module.load (node:internal/modules/cjs/loader:981:32)
[0] at Function.Module._load (node:internal/modules/cjs/loader:822:12)
[0] at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
[0] at node:internal/main/run_main_module:17:47
[0] [nodemon] app crashed - waiting for file changes before starting...
[1] [HPM] Proxy created: / -> http://localhost:5000
[1] i 「wds」: Project is running at http://192.168.189.1/
[1] i 「wds」: webpack output is served from
[1] i 「wds」: Content not from webpack is served from C:\Users\mine\Desktop\boilerplate-mern-stack-master\client\public
[1] i 「wds」: 404s will fallback to /
[1] Starting the development server...
[1]
[1] Browserslist: caniuse-lite is outdated. Please run:
[1] npx browserslist@latest --update-db
[1] Compiled with warnings.
[1]
[1] ./src/components/views/VideoUploadPage/VideouploadPage.js
[1] Line 2:36: 'Message' is defined but never used no-unused-vars
[1] Line 26:12: 'Private' is assigned a value but never used no-unused-vars
[1] Line 27:12: 'Category' is assigned a value but never used no-unused-vars
[1] Line 45:24: Missing '()' invoking a constructor new-parens
[1] Line 88:25: Invalid alt value for img. Use alt="" for presentational images jsx-a11y/alt-text
[1]
[1] ./src/components/views/LoginPage/LoginPage.js
[1] Line 74:11: 'dirty' is assigned a value but never used no-unused-vars
[1] Line 79:11: 'handleReset' is assigned a value but never used no-unused-vars
[1]
[1] ./src/components/views/RegisterPage/RegisterPage.js
[1] Line 92:11: 'dirty' is assigned a value but never used no-unused-vars
[1] Line 97:11: 'handleReset' is assigned a value but never used no-unused-vars
[1]
[1] Search for the keywords to learn more about each warning.
[1] To ignore, add // eslint-disable-next-line to the line before.
[1]
[1] [HPM] Error occurred while trying to proxy request /api/users/auth from localhost:3000 to http://localhost:5000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
이전 강의 까지는 원활하게 되었는데, 이 강의를 듣고, 로그인도 안되는 상태가 되고 video 화면도 forgot password를 누르면 나와서 그 화면으로 가야하는 상태까지 되었습니다. 어떻게 해야할까요?
답변