33,000원
다른 수강생들이 자주 물어보는 질문이 궁금하신가요?
- 미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
image resize 질문드립니다
가로세로 길이가 긴 이미지를 업로드하면 Landingpage에서 이미지 배열이 뒤죽박죽이 됩니다 ㅜㅜ 이미지 크기를 일정하게 resize해서 올릴 방법이 있을까요??
- 미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
선생님! product 테이블에 컬럼이 일부 저장이 안됩니다
선생님! 강의 너무 유용해요 잘 듣고있습니다~ 그런데 마지막 부분에서 디비에 저장되는 컬럼에 body에서 보내준 내용 일부분만 저장이 되고 있습니다. 로그를 찍어봐도 body에는 정상적으로 잘 들어갔는데 오류 메세지도 없고.. 왜 이럴까요? 제가 누락한 부분이 있을까요..?? >client/UploadProductPage.js const submitHandler = e => { console.log("upload to DB"); e.preventDefault(); if (!TitleValue || !Description || !Price || !Continent || !Images) { return alert("모든 값을 넣어주세요."); } const body = { //로그인 된 사람의 ID를 넣어줘야 한다. writer: props.user.userData._id, title: TitleValue, description: Description, price: Price, images: Images, continents: Continent }; Axios.post("/api/product", body).then(res => { if (res.data.success) { alert("상품 업로드에 성공했습니다."); console.log(body); props.history.push("/"); } else { alert("상품 업로드에 실패했습니다."); } }); }; >server/model/Product.js const mongoose = require("mongoose"); const Schema = mongoose.Schema; const productSchema = mongoose.Schema( { writer: { type: Schema.Types.ObjectId, ref: "User" }, title: { type: String, maxlength: 50 }, description: { type: String }, price: { type: Number, default: 0 }, images: { type: Array, default: [] }, sold: { type: Number, maxlength: 100, default: 0 }, continents: { type: Number, default: 1 }, views: { type: Number, default: 0 } }, { timestamps: true } ); productSchema.index( { title: "text", description: "text" }, { weights: { title: 5, description: 1 } } ); const Product = mongoose.model("Product", productSchema); module.exports = { Product }; >console.log 결과 >mongo DB 저장 결과 바쁘시겠지만 알려주시면 감사하겠습니다!
- 미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
views 카운터를 올리고 싶은데 어디서 올리면 될까요?
기능 중에 모델에는 views가 있는데 기능 구현에는 views 올려주는게 없어서 일단 구현하려고 하는데 Product.find({ _id: { $in: productIds } }) .populate('writer') .exec((err, product) => { if (err) return res.status(400).send(err) product.views++; product.save(); return res.status(200).send(product) }) 이런식으로 서버단에서 올리려고 하면 save 함수도 에러가 나고 카운터도 올라가지 않아서요 ㅠㅠ
- 미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
Heroku 배포 질문 입니다.
선생님이 youtube 에 2020 년에 올리신 "deploy MERN Stack App with Heroku" 를 보고 디플로이 하였습니다. local 5000 도 다 heroku 도메인으로 바꿨고요. 업로드가 됬어야 할 사진들은 보이지 않습니다. 그리고 로그인전에 보이지 말아야 할 카트, 히스토리 등이 보입니다. 각페이지로 넘어는 가지만 기능이 작동을 안합니다. 해결 방법을 알려주실수 있으신가요? 부탁드립니다.
- 미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
Card 생성 시 에러가 있습니다
안녕하세요 선생님! 카드만들기 파트 수강중인데 오류가 납니다. LandingPage.js 에서 const renderCards = Products && Products.map((product, index) => { //console.log('product', product) return <Card > <Meta /> </Card> }) Product && 을 쓰지 않으면 TypeError : Cannot read property 'map' of undefined 에러가 나서 적은게 문제일까요 .. renderCards 함수를 쓰지 않고 밑에서 <card> <Meta /> <card> 를 return하면 카드가 잘 나오는데 renderCards함수로 카드를 만들려하면 카드가 나오지 않습니다 ㅜㅜ 어떻게 고쳐야 할까요?
- 미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
npm run dev 입력시 오류가 납니다.
-windows 10 vscode 사용 PS D:\data\projects\boilerplate-mern-stack-master>npm run dev >react-boiler-plate@1.0.0 dev >concurrently "npm run backend" "npm run start --prefix client" 'concurrently'는 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치파일이 아닙니다.
- 미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
혹시 node와 react로 s3 연결하고 배포하는것 까지 강의는 계획에 있으신가요?
열심히 다 배운 덕분에 어느정도 완성 하였고 원하는 기능은 찾아가면서 거의 완성을 하였습니다. 하지만 실질적으로 테스트겸 사이트를 제작 배포해보려고 하니 전체적이 틀을 아직 못 깨고 있어서요 ㅠㅠ
- 해결됨따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
Boiler Plate 질문!
안녕하세요 선생님 궁금한게 있어서 질문드립니다! Boiler Plate강좌를 듣고 이어서 지금 강의를 듣기 시작했는데요 강좌를 보면서 만들었던 Boiler Plate랑 차이가있어서 이것저것 비교해보고 있다가 tokenExp 이부분이 토큰의 유효기간? 으로 알고있는데 어떻게 쓰이고있는지 어떤흐름을타고있는지 간략하게 알고싶습니다! 감사합니다!
- 미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
antd Collapse, lending page 정렬부분 에러 확인 부탁드려요 ㅠㅠ
선생님 좋은 강의 감사합니다 LandingPage의 기능적인 부분은 다 작동하지만 LandingPage 출력시 아래와 같이 출력되어 수정하고자 하는데 어려움이 있습니다... 구글링 해봐도 해결이 어려워 도움 부탁드립니다. 1) product item 출력부분이 아래와 같이 중간에 공백이 생겨서 나옵니다. 어떤 부분이 문제 인지 알 수 있을까요?? 2) antd Collapse를 적용햇는데 아래와 같이 적용되어 질문 드립니다. antd 적용한 부분에 이렇게 뜨는데 이게 문제일까요? 감사합니다
- 미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
cannot get 에러
선생님 안녕하세요! 두번째 강의 듣고있는데 포트 5000으로 접속 시 cannot get 에러가 나와서 질문 드립니다.ㅜㅜ 도움 부탁드립니다 PS C:\Users\user\Downloads\boilerplate-mern-stack-master (2)\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] [1] 'react-scripts'��(��) ���� �Ǵ� �ܺ� ����, ������ �� �ִ� ���α�, �Ǵ� [1] ��ġ ������ �ƴմϴ�. [1] npm run start --prefix client exited with code 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] (node:23504) Warning: Accessing non-existent property 'count' of module exports inside circular dependency [0] (Use `node --trace-warnings ...` to show where the warning was created) [0] (node:23504) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency [0] (node:23504) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency [0] (node:23504) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency [0] Server Listening on 5000 [0] MongoDB Connected...
- 미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
보일러 플레이트 네비바 부분 강의가 없어서 아쉽네요.
첫번째 강의 잘 들었습니다. 강의 연계성을 위해서 두번째인 지금 강의도 듣고있는 중인데.. 첫번째 강의때 만든 보일러플레이트를 사실상 폐기하고 지금 강의를 위해 강사님께서 업로드한 보일러플레이트 프로젝트를 다운받아 그 위에 작업을 해야하는거군요.. 물론 빠진부분이 단순히 위에 네비게이션바와 로그인 폼등 CSS나 간단한 부분이라 올려주신 프로젝트를 다운받아 취합하며 첫번째 강의에서 작업하던 프로젝트에 추가하는건 그리 어렵진 않긴 한데 그부분에서 연계성이 살짝 떨어지는 기분이 드네요. 원래 토이프로젝트나 따라하기같은건 밑바닥 A부터 Z까지 같이 만들어야 성취감이 좋은건데 ㅠ
- 미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
npm install 에러.. 도움 부탁드립니다
안녕하세요 선생님! 개발환경 세팅부터 오류가 나서 ,.. 도움 부탁드립니다 ㅠㅠ npm install 했더니 이런 오류가 뜨는데 해결방법을 못 찾겠네요 . node 버전은 16.0.0 입니다 - PS C:\Users\user\Downloads\boilerplate-mern-stack-master> npm install npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm ERR! code 1 npm ERR! path C:\Users\user\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build npm ERR! Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\user\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\user\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1) npm ERR! node-pre-gyp info it worked if it ends with ok npm ERR! node-pre-gyp info using node-pre-gyp@0.14.0 npm ERR! node-pre-gyp info using node@16.0.0 | win32 | x64 npm ERR! node-pre-gyp WARN Using request for node-pre-gyp https download npm ERR! node-pre-gyp info check checked for "C:\Users\user\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node" (not found) npm ERR! node-pre-gyp http GET https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.8/bcrypt_lib-v3.0.8-node-v93-win32-x64-unknown.tar.gz npm ERR! node-pre-gyp http 404 https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.8/bcrypt_lib-v3.0.8-node-v93-win32-x64-unknown.tar.gz npm ERR! node-pre-gyp WARN Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.8/bcrypt_lib-v3.0.8-node-v93-win32-x64-unknown.tar.gz npm ERR! node-pre-gyp WARN Pre-built binaries not found for bcrypt@3.0.8 and node@16.0.0 (node-v93 ABI, unknown) (falling back to source compile with node-gyp) npm ERR! node-pre-gyp http 404 status code downloading tarball https://github.com/kelektiv/node.bcrypt.js/releases/download/v3.0.8/bcrypt_lib-v3.0.8-node-v93-win32-x64-unknown.tar.gz npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@7.1.2 npm ERR! gyp info using node@16.0.0 | win32 | x64 npm ERR! gyp info ok npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@7.1.2 npm ERR! gyp info using node@16.0.0 | win32 | x64 npm ERR! gyp ERR! find Python npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON npm ERR! gyp ERR! find Python checking if "python3" can be used npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error npm ERR! gyp ERR! find Python checking if "python" can be used npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error npm ERR! gyp ERR! find Python checking if "python2" can be used npm ERR! gyp ERR! find Python - "python2" is not in PATH or produced an error npm ERR! gyp ERR! find Python checking if Python is C:\Python37\python.exe npm ERR! gyp ERR! find Python - "C:\Python37\python.exe" could not be run npm ERR! gyp ERR! find Python checking if Python is C:\Python27\python.exe npm ERR! gyp ERR! find Python - "C:\Python27\python.exe" could not be run npm ERR! gyp ERR! find Python checking if the py launcher can be used to find Python npm ERR! gyp ERR! find Python - "py.exe" is not in PATH or produced an error npm ERR! gyp ERR! find Python npm ERR! gyp ERR! find Python ********************************************************** npm ERR! gyp ERR! find Python You need to install the latest version of Python. npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not, npm ERR! gyp ERR! find Python you can try one of the following options: npm ERR! gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe" npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm) npm ERR! gyp ERR! find Python - Set the environment variable PYTHON npm ERR! gyp ERR! find Python - Set the npm configuration variable python: npm ERR! gyp ERR! find Python npm config set python "C:\Path\To\python.exe" npm ERR! gyp ERR! find Python For more information consult the documentation at: npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation npm ERR! gyp ERR! find Python ********************************************************** npm ERR! gyp ERR! find Python npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: Could not find any Python installation to use npm ERR! gyp ERR! stack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:302:47) npm ERR! gyp ERR! stack at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21) npm ERR! gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:200:18) npm ERR! gyp ERR! stack at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:266:16) npm ERR! gyp ERR! stack at exithandler (node:child_process:333:5) npm ERR! gyp ERR! stack at ChildProcess.errorhandler (node:child_process:345:5) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:365:28) npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12) npm ERR! gyp ERR! stack at onErrorNT (node:internal/child_process:480:16) npm ERR! gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:83:21) npm ERR! gyp ERR! System Windows_NT 10.0.19041 npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\user\\Downloads\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding\\bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=C:\\Users\\user\\Downloads\\boilerplate-mern-stack-master\\node_modules\\bcrypt\\lib\\binding" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93" npm ERR! gyp ERR! cwd C:\Users\user\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt npm ERR! gyp ERR! node -v v16.0.0 npm ERR! gyp ERR! node-gyp -v v7.1.2 npm ERR! gyp ERR! not ok npm ERR! node-pre-gyp ERR! build error npm ERR! node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\user\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\user\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt\lib\binding --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1) npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\user\Downloads\boilerplate-mern-stack-master\node_modules\node-pre-gyp\lib\util\compile.js:83:29) npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:365:28) npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1067:16) npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.19041 npm ERR! node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\user\\Downloads\\boilerplate-mern-stack-master\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" npm ERR! node-pre-gyp ERR! cwd C:\Users\user\Downloads\boilerplate-mern-stack-master\node_modules\bcrypt npm ERR! node-pre-gyp ERR! node -v v16.0.0 npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.14.0 npm ERR! node-pre-gyp ERR! not ok npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\user\AppData\Local\npm-cache\_logs\2021-09-28T04_56_34_583Z-debug.log
- 미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
셋업 질문입니다
처음에 boiler plate를 가져와서 한번에 VSC에서 열고 깃허브에 push 할려고 하니 안되더라고요. 그래서 server랑 client 를 나눠서 각각 프로젝트를 만들고 깃허브로 push 하니 되었는데. 이렇게 해도 프로젝트를 진행하는 데에는 문제가 없을까요?
- 미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
npm install 질문입니다.
저는 npm install 실행후 이렇게 짧게만 나오는데 제대로 인스톨이 된거 맞나요?
- 미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
[0] TypeError: Cannot read property 'path' of undefined
안녕하세요! 5분 40초쯤 파일을 업로드하고 아래와 같은 에러가 출력됩니다. 확인 부탁 드립니다. [0] MongoDB Connected... [0] C:\Users\User\Desktop\boilerplate-mern-stack-master\server\routes\product.js:28 [0] return res.json({success:true, filePath:res.req.file.path, fileName: res.req.file.filename}) [0] ^ [0] [0] TypeError: Cannot read property 'path' of undefined [0] at C:\Users\User\Desktop\boilerplate-mern-stack-master\server\routes\product.js:28:60 [0] at Array.<anonymous> (C:\Users\User\Desktop\node_modules\multer\lib\make-middleware.js:53:37) [0] at listener (C:\Users\User\Desktop\node_modules\on-finished\index.js:169:15) [0] at onFinish (C:\Users\User\Desktop\node_modules\on-finished\index.js:100:5) [0] at callback (C:\Users\User\Desktop\node_modules\ee-first\index.js:55:10) [0] at IncomingMessage.onevent (C:\Users\User\Desktop\node_modules\ee-first\index.js:93:5) [0] at IncomingMessage.emit (events.js:412:35) [0] at endReadableNT (internal/streams/readable.js:1317:12) [0] at processTicksAndRejections (internal/process/task_queues.js:82:21) [1] [HPM] Error occurred while trying to proxy request /api/product/image from localhost:3000 to http://localhost:5000 (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors) [0] [nodemon] app crashed - waiting for file changes before starting... [1] [HPM] Error occurred while trying to proxy request /api/product/image from localhost:3000 to http://localhost:5000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
- 미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
src/hoc/auth.js에서 return <SpecificComponent {...props} user={user} /> 질문입니다!
컴포넌트에 props로 user를 넣어줄때 그 앞에 {...props}는 의미가 뭔가요??
- 미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
paypal 한국 결제
paypal 결제 시스템을 사용하면 한국에서 원할하게 사용할 수 있나요? 예를 들어 비자카드만 된다던지 이런 문제가 있을까요?
- 미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
[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)
안녕하십니까 아래와 같은 에러가 발생해서 문의드립니다. PS C:\Users\User\Desktop\boilerplate-mern-stack-master> npm run dev > react-boiler-plate@1.0.0 dev C:\Users\User\Desktop\boilerplate-mern-stack-master > concurrently "npm run backend" "npm run start --prefix client" [0] [0] > react-boiler-plate@1.0.0 backend C:\Users\User\Desktop\boilerplate-mern-stack-master [0] > nodemon server/index.js [0] [1] [1] > client@0.1.0 start C:\Users\User\Desktop\boilerplate-mern-stack-master\client [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\User\Desktop\boilerplate-mern-stack-master\server\routes\product.js:10 [0] var storage = multer.diskStorage({//어디에 파일이 저장되는지 [0] ^ [0] [0] ReferenceError: multer is not defined [0] at Object.<anonymous> (C:\Users\User\Desktop\boilerplate-mern-stack-master\server\routes\product.js:10:15) [0] at Module._compile (internal/modules/cjs/loader.js:1072:14) [0] at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10) [0] at Module.load (internal/modules/cjs/loader.js:937:32) [0] at Function.Module._load (internal/modules/cjs/loader.js:778:12) [0] at Module.require (internal/modules/cjs/loader.js:961:19) [0] at require (internal/modules/cjs/helpers.js:92:18) [0] at Object.<anonymous> (C:\Users\User\Desktop\boilerplate-mern-stack-master\server\index.js:39:25) [0] at Module._compile (internal/modules/cjs/loader.js:1072:14) [0] at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10) [0] at Module.load (internal/modules/cjs/loader.js:937:32) [0] at Function.Module._load (internal/modules/cjs/loader.js:778:12) [0] at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) [0] at internal/main/run_main_module.js: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.0.3/ [1] i 「wds」: webpack output is served from [1] i 「wds」: Content not from webpack is served from C:\Users\User\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/UploadProductPage/UploadProductPage.js [1] Line 2:10: 'Typography' is defined but never used no-unused-vars [1] Line 3:10: 'Item' is defined but never used no-unused-vars [1] Line 26:12: 'Images' is assigned a value but never used no-unused-vars [1] Line 26:20: 'setImages' is assigned a value but never used no-unused-vars [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) ------------------------------------------------------------------------------------------------- npm install bcrypt --save 이것도 해보고 bcryptjs를 받아 const bcrypt = require('bcryptjs') 이렇게도 해봤는데 위와 같은 오류가 발생합니다. 브라우저 console창에는 Failed to load resource: the server responded with a status of 504 (Gateway Timeout) 에러가 발생합니다. 확인부탁드립니다.
- 미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
궁금한게 있습니다.
5분25초 정도에 보면 file 보내는 거 성공했을 때 filePath와 fileName 모두 res.req.file을 통해서 파일 딕셔너리를 찾으셨는데 req.file로는 안하는 이유는 무엇인가요? 저는 한 번 해봤는데 둘 다 같은 것 같아서 궁금합니다!!
- 미해결따라하며 배우는 노드, 리액트 시리즈 - 쇼핑몰 사이트 만들기[전체 리뉴얼]
GET http://localhost:3000/api/users/auth 504 (Gateway Timeout) 에러
안녕하세요! 업로드 페이지 마지막강(15강)을 듣고 테스트를 해보는 과정에서 계속 이러한 에러가 뜹니다. 프로젝트 실행하자마자 뜨는 에러입니다. 또 vscode 들어가서 보면 에러는 product.js에서 41번째 줄에 있고 왜 세미콜론 부분에서 에러가 뜨는지 잘 모르겠습니다. login 부분은 딱히 건들지 않았는데 해당 부분에서 에러가 떠서 git 주소 남깁니다. git 주소: https://github.com/reader-wh94/boilerplate-mern-stack-master