월 28,600원
5개월 할부 시다른 수강생들이 자주 물어보는 질문이 궁금하신가요?
- 미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
상품 상세 화면이 나오지 않아요..
상품 상세 화면에서 비동기식 처리로 null 이 끝나고 다음 처리가 되지 않는 것 같아요 이 화면에서 새로고침을 하거나 그냥 기다려도 변하지 않네요 뭐가 문제인것일까요????? product 의 index.js 함께 첨부합니다. import { useParams } from "react-router-dom"; import axios from "axios"; import { useEffect, useState } from "react"; function ProductPage() { const { id } = useParams(); const [product, setProduct] = useState(null); useEffect(function () { axios .get( "https://a961ad84-b349-455c-9581-09eecba1d299.mock.pstmn.io/products" + id ) .then(function (result) { setProduct(result.data); }) .catch(function (error) { console.error(error); }); }, []); if (product === null) { return <h1>상품 정보를 받고 있습니다..</h1>; } return ( <div> <div id="image-box"> <img src={"/" + product.imageUrl} /> </div> <div id="profile-box"> <img src="/images/images/icons/avatar.png" /> <span>{product.seller}</span> </div> <div id="contents-box"> <div id="name">{product.name}</div> <div id="price">{product.price}원</div> <div id="description">{product.description}</div> </div> </div> ); } export default ProductPage;
- 미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
이 강의에선 Update와 Delete는 구현을 하지 않는건가요?
이 강의에선 Update와 Delete는 구현을 하지 않는건가요?
- 미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
포스트맨 이미지가 올라가질 않습니다
계속 이런 메세지가 뜨면서 진행이 되질 않습니다 형식도 파일로 바꾸고 그대로 했는데 왜 이러는걸까요?
- 미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
web.js 안됩니다.
(사진)
- 미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
react-native에서 카카오 로그인 시도중입니다..
안녕하세요 expo 환경에서 react-native로 카카오 로그인 구현 시도중인데 계속 오류가 나는데 정확한 원인을 모르겠어서 문의드립니다. webview실행이 안되고 expo 상에서 redirect_uri 를 설정하는 방법도 알고싶습니다. 아래 코드랑 오류 코드 첨부합니다. 감사합니다 :) Get /oauth/authorize?client_id={REST_API_KEY}&redirect_uri={REDIRECT_URI}&response_type=code Http 1.1
- 미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
watchman watch-del-all 명령어 오류 발생합니다...
강의와 같은 오류가 발생하여 watchman watch-del-all 명령어를 작성하였는데 아래와 같은 오류가 발생하였습니다. watchman : 'watchman' 용어가 cmdlet, 함수, 스크립트 파일 또는 실행할 수 있는 프로그램 이름으로 인식되지 않습니다. 이름이 정확한지 확인하고 경로가 포함된 경우 경로가 올바른지 검증한 다음 다시 시도하십시오. 위치 줄:1 문자:1 + watchman watch-del-all + ~~~~~~~~ + CategoryInfo : ObjectNotFound: (watchman:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException 구글링을 해도 해결방법이 보이지 않네요 ... 아래 명령어도 동일하게 오류가 발생합니다.. grab-market-mobile> rm -rf node_modules/&& npm install 위치 줄:1 문자:21 + rm -rf node_modules/&& npm install + ~~ '&&' 토큰은 이 버전에서 올바른 문 구분 기호가 아닙니다. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : InvalidEndOfLine
- 미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
function부분이 이해가 잘 가지 않습니다.
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운ㅇ영 관련 문의는 1:1 문의하기를 이용해주세요. function(sequelize, dataTypes) 에 인자가 들어가는 이유와 const banner = sequelize.defind(~~ 부분이 잘 이해가 안가는데 어느 부분을 추가 공부 해야할까요? ㅠㅠㅠㅠ
- 미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
function에 인자를 넣는 이유가 뭔지 모르겠습니다
function(sequealize,dataTypes)에 인자가 들어가는 이유를 잘 모르겠으면 어느 부분을 더 보충 공부해야 할까요? const banner = sequelize.define(~~ 이 부분도 이해가 잘 안갑니다..ㅠㅠ
- 미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
'create-react-app'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다.
C:\Users\ykl11\Desktop\ㅇㅇ\grab-market-project>npm install -g create-react-app npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap. changed 67 packages, and audited 68 packages in 3s 4 packages are looking for funding run `npm fund` for details 3 high severity vulnerabilities To address all issues, run: npm audit fix Run `npm audit` for details. C:\Users\ykl11\Desktop\ㅇㅇ\grab-market-project>create-react-app . 'create-react-app'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다. 이런식으로 뜨는데 create-react-app이 설치되지 않아서 저렇게 뜨는걸까요?
- 미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
heroku open app이 안됩니다.
open app 눌렀을 때 Application error 가 떠서 heroku logs --tail 했더니 아래와 같이 나옵니다.. 처음 설치 할 때 윈도우 64 버전으로 다운받았다가 제대로 설치가 안되서 터미널에 npm install -g heroku 로 설치했는데 이거때문에 에러발생한건 아니겠죠..? 도데체 뭐가 문제일까요,,,ㅜㅜ 2021-08-18T02:39:46.109813+00:00 app[api]: Initial release by user yami654@naver.com 2021-08-18T02:39:46.109813+00:00 app[api]: Release v1 created by user yami654@naver.com 2021-08-18T02:39:46.646946+00:00 app[api]: Release v2 created by user yami654@naver.com 2021-08-18T02:39:46.646946+00:00 app[api]: Enable Logplex by user yami654@naver.com 2021-08-18T03:15:30.000000+00:00 app[api]: Build started by user yami654@naver.com 2021-08-18T03:15:44.946691+00:00 app[api]: Deploy 73698b81 by user yami654@naver.com 2021-08-18T03:15:44.946691+00:00 app[api]: Release v3 created by user yami654@naver.com 2021-08-18T03:15:44.962166+00:00 app[api]: Scaled to web@1:Free by user yami654@naver.com 2021-08-18T03:15:45.000000+00:00 app[api]: Build succeeded 2021-08-18T03:15:46.849567+00:00 heroku[web.1]: Starting process with command `npm start` 2021-08-18T03:15:48.467075+00:00 app[web.1]: npm ERR! missing script: start 2021-08-18T03:15:48.469419+00:00 app[web.1]: 2021-08-18T03:15:48.469575+00:00 app[web.1]: npm ERR! A complete log of this run can be found in: 2021-08-18T03:15:48.469627+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-08-18T03_15_48_467Z-debug.log 2021-08-18T03:15:48.505118+00:00 heroku[web.1]: Process exited with status 1 2021-08-18T03:15:48.569896+00:00 heroku[web.1]: State changed from starting to crashed 2021-08-18T03:15:48.626165+00:00 heroku[web.1]: State changed from crashed to starting 2021-08-18T03:15:50.660116+00:00 heroku[web.1]: Starting process with command `npm start` 2021-08-18T03:15:53.686889+00:00 app[web.1]: npm ERR! missing script: start 2021-08-18T03:15:53.690042+00:00 app[web.1]: 2021-08-18T03:15:53.690189+00:00 app[web.1]: npm ERR! A complete log of this run can be found in: 2021-08-18T03:15:53.690240+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-08-18T03_15_53_687Z-debug.log 2021-08-18T03:15:53.750250+00:00 heroku[web.1]: Process exited with status 1 2021-08-18T03:15:53.806800+00:00 heroku[web.1]: State changed from starting to crashed 2021-08-18T03:16:29.031061+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=9db03a45-a36b-4318-8f1c-f27106a60f71 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:16:29.318859+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=822c4e5d-f54b-4f94-89f7-32de2c363e92 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:16:56.093717+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/products" host=my-market-server.herokuapp.com request_id=5b78920f-2090-4314-ae7b-76f0a34d84ad fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:16:56.351250+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=a4d3e8f6-15df-43dd-bd06-87464aa5d539 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:17:10.310433+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/products" host=my-market-server.herokuapp.com request_id=1784bcf8-71c8-4f54-bd0e-6cedfc7fe220 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:17:10.568669+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=064cf586-4124-466d-a687-89018e88be2e fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:17:11.584852+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=4a4f46cb-4027-4c95-897d-7923853888a3 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:17:12.242006+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=5af7db2f-5506-4685-8fc7-a65c42478e93 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:17:34.661203+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=3d5bd02b-fe36-42c7-bbe1-67d30cc4a880 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:17:34.916719+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=4ae72cb2-4b77-4fed-9159-8085d8cc95de fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:20:43.967959+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=1d0c2380-b329-414e-b949-3b8d785c9515 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:20:44.215550+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=99cc3b7b-59e5-45ce-97bd-2ac3b924c141 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:20:49.191410+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=6dc3421e-14a6-44f5-86cf-83ad5a59ae45 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:20:49.447262+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=1e860558-9de6-4888-84cf-8192907c7a3d fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:21:09.673061+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=b0e60ff5-5d90-4a14-97de-f8966ce51ea2 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:21:09.943346+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=d4fe93be-86ac-4e72-be20-8004fca8998f fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:21:19.188733+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=d8196c34-287a-4261-b7fb-6f83415fe61d fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:21:19.451249+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=c21454e4-2f7e-4b54-af5e-dc37e4b93ecf fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:22:02.934781+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=cc23fbaa-d9c5-45dd-b031-4498bc4984a5 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:22:03.183677+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=5a51c5c7-9378-4ff6-8462-e1109f80a9be fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:22:11.206135+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/products" host=my-market-server.herokuapp.com request_id=cdf37377-c415-49c7-b455-a9b7e9bef1a8 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:22:11.481510+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=3674f067-2568-4c61-addb-89db6da1b8a1 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:28:27.449471+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/products" host=my-market-server.herokuapp.com request_id=8319b96a-4f03-4e29-80d6-a4e4ba98f620 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:28:27.702372+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=90561d74-07c9-4556-8bf8-db1df78da334 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:28:30.321622+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=fe037562-cde6-44cc-bbcc-c6e766cdd463 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:28:30.539718+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=a764b394-361b-49eb-91fa-b50ae9fa0a3b fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:31:50.648306+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=8d02130d-89ad-46c2-8504-a33d575aff06 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:31:50.928533+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=b9d54f96-b322-4b5d-93b0-d2602c130bed fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:32:09.680426+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=7c096e8a-e82f-431f-bbab-d21c2bcc14d3 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:32:09.929380+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=e39fe4e0-24c7-4b6b-925a-c87efa0c73cc fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:32:44.023292+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=574e51bd-1d48-4171-a5b3-3c12685bb274 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:32:44.265175+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=65f2a6fc-a08c-4394-9053-2486522547ff fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:49:55.619602+00:00 heroku[web.1]: State changed from crashed to starting 2021-08-18T03:49:57.908905+00:00 heroku[web.1]: Starting process with command `npm start` 2021-08-18T03:50:00.787895+00:00 app[web.1]: npm ERR! missing script: start 2021-08-18T03:50:00.790751+00:00 app[web.1]: 2021-08-18T03:50:00.790882+00:00 app[web.1]: npm ERR! A complete log of this run can be found in: 2021-08-18T03:50:00.790924+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-08-18T03_50_00_788Z-debug.log 2021-08-18T03:50:00.829962+00:00 heroku[web.1]: Process exited with status 1 2021-08-18T03:50:00.888583+00:00 heroku[web.1]: State changed from starting to crashed 2021-08-18T04:47:22.040630+00:00 heroku[web.1]: State changed from crashed to starting 2021-08-18T04:47:23.938189+00:00 heroku[web.1]: Starting process with command `npm start` 2021-08-18T04:47:26.623231+00:00 app[web.1]: npm ERR! missing script: start 2021-08-18T04:47:26.626063+00:00 app[web.1]: 2021-08-18T04:47:26.626226+00:00 app[web.1]: npm ERR! A complete log of this run can be found in: 2021-08-18T04:47:26.626291+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-08-18T04_47_26_623Z-debug.log 2021-08-18T04:47:26.675330+00:00 heroku[web.1]: Process exited with status 1 2021-08-18T04:47:26.722768+00:00 heroku[web.1]: State changed from starting to crashed 2021-08-18T04:59:27.780512+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=e3d09c20-368a-432f-ad2a-4ab4cdeefcb3 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T04:59:28.020807+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=235b8b0f-70ef-4e0d-8ac0-99907387ee5b fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:08:23.747029+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=da178449-52e5-4082-a741-453df062d347 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:08:24.008404+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=745f1df8-0c2f-40be-b823-ccf29dfe2147 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:08:35.322775+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/products" host=my-market-server.herokuapp.com request_id=2a384ba4-681c-4d24-af5d-f3a6a9e83709 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:08:35.586404+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=f356c249-2d99-457e-b209-5a485dfd927b fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:08:37.845651+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=526c17f1-869e-4523-beb8-143de52220cf fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:08:38.104850+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=6f99647e-f34e-4898-bf32-5913a4d0389b fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:09:03.335905+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=8eaedaf6-3c59-45f5-9f75-674c65c9d163 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:09:03.620787+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=12df17e3-2e22-4d98-ad63-9235025d542f fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:10:08.265191+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=89dd0929-b95e-4585-8469-cd0d33bd55f4 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:10:08.510624+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=9f19c627-a641-435c-81f1-2dfd9c600aef fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:14:04.632877+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=f2f7127e-e289-4e58-82f7-eceab27b4940 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:14:04.951584+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=11236159-5349-43e4-a569-d0b4197b6215 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:21:55.255285+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=8d2a3344-ac03-429f-8357-60c7c0511194 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:21:55.520591+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=6020f0a7-c21f-4e69-bb83-51055bf0ccdc fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:23:53.023775+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=6a3f24b4-6a40-403b-8743-70215a913296 fwd="220.85.237.49" dyno= connect= 2021-08-18T05:23:53.307851+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=ac6d590c-dbf8-440f-ac59-a5a08a7673c2 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:24:53.686116+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=4e0da5d6-fdb7-4255-94c0-57fb96e51e7a fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https = connect= service= status=503 bytes= protocol=https " dyno= connect= service= status=503 bytes= protocol=https = connect= service= status=503 bytes= protocol=https 2021-08-18T05:38:18.019063+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=a2501b48-4edb-45f1-aab9-64b55e1694aa fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:38:18.293382+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=7193d07a-d0b7-4934-9de0-7ca0a240b062 fwd="220.85.237.49" dynoPS C:\Users\MY\Desktop\grab-market-server> heroku login heroku: Press any key to open up the browser to login or q to exit: Opening browser to https://cli-auth.heroku.com/auth/cli/browser/c0c09d30-5441-4b6c-ab7d-9a7ed03cd886?requestor=SFMyNTY.g2gDbQAAAA0yMjAuODUuMjM3LjQ5bgYACBfGV3sBYgABUYA.fcSC_jd_88o4pSO6E7ezMk1QwuEK1YvHq8LIyu5eV10 Logging in... done Logged in as yami654@naver.com PS C:\Users\MY\Desktop\grab-market-server> heroku --version PS C:\Users\MY\Desktop\grab-market-server> heroku login heroku: Press any key to open up the browser to login or q to exit: Opening browser to https://cli-auth.heroku.com/auth/cli/browser/45023056-1c41-434c-9af7-be4b5b993a88?requestor=SFMyNTY.g2gDbQAAAA0yMjAuODUuMjM3LjQ5bgYAGGHVV3sBYgABUYA.ntqCqu25FaUqvLiv60AsfNmSPZupxHWb7v119xGOz0U Logging in... done PS C:\Users\MY\Desktop\grab-market-server> heroku git:clone -a my-market-server Cloning into 'my-market-server'... remote: Compressing objects: 100% (4/4), done. Unpacking objects: 100% (5/5), 837 bytes | 41.00 KiB/s, done. PS C:\Users\MY\Desktop\grab-market-server> ^C PS C:\Users\MY\Desktop\grab-market-server> cd my-market-server PS C:\Users\MY\Desktop\grab-market-server\my-market-server> git add . PS C:\Users\MY\Desktop\grab-market-server\my-market-server> git commit -am "make it better" On branch main Your branch is up to date with 'heroku/main'. nothing to commit, working tree clean PS C:\Users\MY\Desktop\grab-market-server\my-market-server> git push heroku master error: src refspec master does not match any error: failed to push some refs to 'https://git.heroku.com/my-market-server.git' PS C:\Users\MY\Desktop\grab-market-server\my-market-server> git push heroku main Everything up-to-date PS C:\Users\MY\Desktop\grab-market-server\my-market-server> heroku logs --tail 2021-08-18T02:39:46.109813+00:00 app[api]: Initial release by user yami654@naver.com 2021-08-18T02:39:46.109813+00:00 app[api]: Release v1 created by user yami654@naver.com 2021-08-18T02:39:46.646946+00:00 app[api]: Release v2 created by user yami654@naver.com 2021-08-18T02:39:46.646946+00:00 app[api]: Enable Logplex by user yami654@naver.com 2021-08-18T03:15:30.000000+00:00 app[api]: Build started by user yami654@naver.com 2021-08-18T03:15:44.946691+00:00 app[api]: Deploy 73698b81 by user yami654@naver.com 2021-08-18T03:15:44.946691+00:00 app[api]: Release v3 created by user yami654@naver.com 2021-08-18T03:15:44.962166+00:00 app[api]: Scaled to web@1:Free by user yami654@naver.com 2021-08-18T03:15:45.000000+00:00 app[api]: Build succeeded 2021-08-18T03:15:46.849567+00:00 heroku[web.1]: Starting process with command `npm start` 2021-08-18T03:15:48.467075+00:00 app[web.1]: npm ERR! missing script: start 2021-08-18T03:15:48.469419+00:00 app[web.1]: 2021-08-18T03:15:48.469575+00:00 app[web.1]: npm ERR! A complete log of this run can be found in: 2021-08-18T03:15:48.469627+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-08-18T03_15_48_467Z-debug.log 2021-08-18T03:15:48.505118+00:00 heroku[web.1]: Process exited with status 1 2021-08-18T03:15:48.569896+00:00 heroku[web.1]: State changed from starting to crashed 2021-08-18T03:15:48.626165+00:00 heroku[web.1]: State changed from crashed to starting 2021-08-18T03:15:50.660116+00:00 heroku[web.1]: Starting process with command `npm start` 2021-08-18T03:15:53.686889+00:00 app[web.1]: npm ERR! missing script: start 2021-08-18T03:15:53.690042+00:00 app[web.1]: 2021-08-18T03:15:53.690189+00:00 app[web.1]: npm ERR! A complete log of this run can be found in: 2021-08-18T03:15:53.690240+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-08-18T03_15_53_687Z-debug.log 2021-08-18T03:15:53.750250+00:00 heroku[web.1]: Process exited with status 1 2021-08-18T03:15:53.806800+00:00 heroku[web.1]: State changed from starting to crashed 2021-08-18T03:16:29.031061+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=9db03a45-a36b-4318-8f1c-f27106a60f71 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:16:29.318859+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=822c4e5d-f54b-4f94-89f7-32de2c363e92 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:16:56.093717+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/products" host=my-market-server.herokuapp.com request_id=5b78920f-2090-4314-ae7b-76f0a34d84ad fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:16:56.351250+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=a4d3e8f6-15df-43dd-bd06-87464aa5d539 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:17:10.310433+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/products" host=my-market-server.herokuapp.com request_id=1784bcf8-71c8-4f54-bd0e-6cedfc7fe220 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:17:10.568669+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=064cf586-4124-466d-a687-89018e88be2e fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:17:11.584852+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=4a4f46cb-4027-4c95-897d-7923853888a3 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:17:12.242006+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=5af7db2f-5506-4685-8fc7-a65c42478e93 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:17:34.661203+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=3d5bd02b-fe36-42c7-bbe1-67d30cc4a880 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:17:34.916719+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=4ae72cb2-4b77-4fed-9159-8085d8cc95de fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:20:43.967959+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=1d0c2380-b329-414e-b949-3b8d785c9515 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:20:44.215550+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=99cc3b7b-59e5-45ce-97bd-2ac3b924c141 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:20:49.191410+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=6dc3421e-14a6-44f5-86cf-83ad5a59ae45 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:20:49.447262+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=1e860558-9de6-4888-84cf-8192907c7a3d fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:21:09.673061+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=b0e60ff5-5d90-4a14-97de-f8966ce51ea2 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:21:09.943346+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=d4fe93be-86ac-4e72-be20-8004fca8998f fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:21:19.188733+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=d8196c34-287a-4261-b7fb-6f83415fe61d fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:21:19.451249+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=c21454e4-2f7e-4b54-af5e-dc37e4b93ecf fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:22:02.934781+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=cc23fbaa-d9c5-45dd-b031-4498bc4984a5 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:22:03.183677+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=5a51c5c7-9378-4ff6-8462-e1109f80a9be fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:22:11.206135+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/products" host=my-market-server.herokuapp.com request_id=cdf37377-c415-49c7-b455-a9b7e9bef1a8 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:22:11.481510+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=3674f067-2568-4c61-addb-89db6da1b8a1 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:28:27.449471+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/products" host=my-market-server.herokuapp.com request_id=8319b96a-4f03-4e29-80d6-a4e4ba98f620 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:28:27.702372+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=90561d74-07c9-4556-8bf8-db1df78da334 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:28:30.321622+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=fe037562-cde6-44cc-bbcc-c6e766cdd463 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:28:30.539718+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=a764b394-361b-49eb-91fa-b50ae9fa0a3b fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:31:50.648306+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=8d02130d-89ad-46c2-8504-a33d575aff06 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:31:50.928533+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=b9d54f96-b322-4b5d-93b0-d2602c130bed fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:32:09.680426+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=7c096e8a-e82f-431f-bbab-d21c2bcc14d3 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:32:09.929380+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=e39fe4e0-24c7-4b6b-925a-c87efa0c73cc fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:32:44.023292+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=574e51bd-1d48-4171-a5b3-3c12685bb274 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:32:44.265175+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=65f2a6fc-a08c-4394-9053-2486522547ff fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T03:49:55.619602+00:00 heroku[web.1]: State changed from crashed to starting 2021-08-18T03:49:57.908905+00:00 heroku[web.1]: Starting process with command `npm start` 2021-08-18T03:50:00.787895+00:00 app[web.1]: npm ERR! missing script: start 2021-08-18T03:50:00.790751+00:00 app[web.1]: 2021-08-18T03:50:00.790882+00:00 app[web.1]: npm ERR! A complete log of this run can be found in: 2021-08-18T03:50:00.790924+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-08-18T03_50_00_788Z-debug.log 2021-08-18T03:50:00.829962+00:00 heroku[web.1]: Process exited with status 1 2021-08-18T03:50:00.888583+00:00 heroku[web.1]: State changed from starting to crashed 2021-08-18T04:47:22.040630+00:00 heroku[web.1]: State changed from crashed to starting 2021-08-18T04:47:23.938189+00:00 heroku[web.1]: Starting process with command `npm start` 2021-08-18T04:47:26.623231+00:00 app[web.1]: npm ERR! missing script: start 2021-08-18T04:47:26.626063+00:00 app[web.1]: 2021-08-18T04:47:26.626226+00:00 app[web.1]: npm ERR! A complete log of this run can be found in: 2021-08-18T04:47:26.626291+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-08-18T04_47_26_623Z-debug.log 2021-08-18T04:47:26.675330+00:00 heroku[web.1]: Process exited with status 1 2021-08-18T04:47:26.722768+00:00 heroku[web.1]: State changed from starting to crashed 2021-08-18T04:59:27.780512+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=e3d09c20-368a-432f-ad2a-4ab4cdeefcb3 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T04:59:28.020807+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=235b8b0f-70ef-4e0d-8ac0-99907387ee5b fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:08:23.747029+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=da178449-52e5-4082-a741-453df062d347 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:08:24.008404+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=745f1df8-0c2f-40be-b823-ccf29dfe2147 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:08:35.322775+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/products" host=my-market-server.herokuapp.com request_id=2a384ba4-681c-4d24-af5d-f3a6a9e83709 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:08:35.586404+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=f356c249-2d99-457e-b209-5a485dfd927b fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:08:37.845651+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=526c17f1-869e-4523-beb8-143de52220cf fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:08:38.104850+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=6f99647e-f34e-4898-bf32-5913a4d0389b fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:09:03.335905+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=8eaedaf6-3c59-45f5-9f75-674c65c9d163 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:09:03.620787+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=12df17e3-2e22-4d98-ad63-9235025d542f fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:10:08.265191+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=89dd0929-b95e-4585-8469-cd0d33bd55f4 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:10:08.510624+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=9f19c627-a641-435c-81f1-2dfd9c600aef fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:14:04.632877+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=f2f7127e-e289-4e58-82f7-eceab27b4940 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:14:04.951584+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=11236159-5349-43e4-a569-d0b4197b6215 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:21:55.255285+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=8d2a3344-ac03-429f-8357-60c7c0511194 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:21:55.520591+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=6020f0a7-c21f-4e69-bb83-51055bf0ccdc fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:23:53.023775+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=6a3f24b4-6a40-403b-8743-70215a913296 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:23:53.307851+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=ac6d590c-dbf8-440f-ac59-a5a08a7673c2 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:24:53.686116+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=4e0da5d6-fdb7-4255-94c0-57fb96e51e7a fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:24:53.992428+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=b17dc872-d735-43f9-94c1-fde406b2b991 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:26:08.066149+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=21ea3de6-d52a-4f31-be9a-433d7953b886 fwd="220.85.237.49" dyno= connect= 2021-08-18T05:26:08.302062+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=058de701-f1dd-4b42-bc4b-6fba3313681b fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:38:18.019063+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=a2501b48-4edb-45f1-aab9-64b55e1694aa fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:38:18.293382+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=7193d07a-d0b7-4934-9de0-7ca0a240b062 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:42:40.415504+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=5a65d433-410f-494d-9b29-63dfec32d251 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:42:40.683371+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=6f924e14-8a1f-4e77-b940-ced907185378 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:58:25.254701+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=my-market-server.herokuapp.com request_id=c91b4d47-9199-4767-a1ea-451e7bf35bc5 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 2021-08-18T05:58:25.534788+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=my-market-server.herokuapp.com request_id=c624ef72-68af-490f-8d27-8fd34469d9d2 fwd="220.85.237.49" dyno= connect= service= status=503 bytes= protocol=https 아래는 index.js 코드인데 올려주신 소스코드와 비교해봤을 때 틀린곳은 없어보였는데 놓친부분이 있을까요..? const express = require("express"); const cors = require("cors"); const app = express(); const models = require("./models"); const multer = require("multer"); const upload = multer({ storage: multer.diskStorage({ destination: function (req, file, cb) { cb(null, "uploads/"); }, filename: function (req, file, cb) { cb(null, file.originalname); }, }), }); const port = process.env.PORT || 8080; app.use(express.json()); app.use(cors()); app.use("/uploads", express.static("uploads")); app.get("/banners", (req, res) => { models.Banner.findAll({ limit: 2, }) .then((result) => { res.send({ banners: result, }); }) .catch((error) => { console.error(error); res.status(500).send("에러가 발생했습니다."); }); }); app.get("/products", (req, res) => { models.Product.findAll({ order: [["createdAt", "DESC"]], attributes: [ "id", "name", "price", "createdAt", "seller", "imageUrl", "soldout", ], }) .then((result) => { console.log("PRODUCTS: ", result); res.send({ products: result, }); }) .catch((error) => { console.error(error); res.status(400).send("에러 발생"); }); }); app.post("/products", (req, res) => { const body = req.body; const { name, description, price, seller, imageUrl } = body; if (!name || !description || !price || !seller || !imageUrl) { res.status(400).send("모든필드를 입력해주세요."); } models.Product.create({ description, price, seller, imageUrl, name }) .then((result) => { console.log("상품 생성 결과 : ", result); res.send({ result, }); }) .catch((error) => { console.error(error); res.status(400).send("상품 업로드에 문제가 발생했습니다."); }); }); app.get("/products/:id", (req, res) => { const params = req.params; const { id } = params; models.Product.findOne({ where: { id: id, }, }) .then((result) => { console.log("PRODUCTS :", result); res.send({ product: result, }); }) .catch((error) => { console.error(error); return res.status(400).send("상품 조회에 에러가 발생했습니다."); }); }); app.post("/image", upload.single("image"), (req, res) => { const file = req.file; console.log(file); res.send({ imageUrl: file.path, }); }); app.post("/purchase/:id", (req, res) => { const { id } = req.params; models.Product.update( { soldout: 1, }, { where: { id, }, } ) .then((reuslt) => { res.send({ result: true, }); }) .catch((error) => { res.status(500).send("에러가 발생했습니다."); }); }); app.listen(port, () => { console.log("그랩의 쇼핑몰 서버가 돌아가고 있습니다."); models.sequelize .sync() .then(() => { console.log("DB 연결 성공!"); }) .catch((error) => { console.error(err); console.log("DB 연결 에러"); process.exit(); }); });
- 미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
image가 먹히지 않는 것 같아요 ㅠㅠ
분명 Html, CSS 을 따라 할 때는 잘 되었습니다. 그런데 javascript로 넘어오면 계속 안됩니다 ㅠㅠ 왜 그럴까요 경로도 맞게 쓴 것 같은데 ㅠㅠ
- 미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
npm start 에러
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 리액트네이티브 엑스포 스타트를 하려고 하는데요. 강의대로 npm start나 expo start 모두 아래의 에러가 나오는데요. 구글링하다가 안되서 질문 올립니다. 지난주에는 이런 에러가 나오지 않고 잘되었습니다. 이번주 들어서 업데이트 문제가 발생한건지 되지 않습니다. brew reinstall watchman 을 하라는 구글링도 있지만 모두 안됩니다. Expo Developer Tools is disconnected from Expo CLI. Use the expo start command to start the CLI again. 검토 및 답변 부탁드립니다.
- 미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
tar @2.2.2:오류가 뜨는데 어떻게 해야하나요?
이렇게오류가 뜨는데 뭘 업데이트 해야하나요?
- 미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
postman 오류가 납니다
save 누르고 send를 누르면 오류가 떠서 콘솔로 내용을 확인해보면 이렇습니다.. 코드도 동일하게작성했는데 어떻게 해야하는지 잘 모르겠습니다. Error: getaddrinfo ENOTFOUND {{url}} ▶Request Headers User-Agent: PostmanRuntime/7.28.3 Accept: */* Postman-Token: 4ecae740-2917-4189-8e30-b0aa6da4f027 Host: {{url}} Accept-Encoding: gzip, deflate, br Connection: keep-alive ▶
- 미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
람다함수에서 this 에 대해서
람다함수는 다른 함수와는 다르게 this 가 동작한다고 적어두셨는데 정확히 어떻게 다르게 동작하는건가요?? this 가 뭔지 링크는 달아두셔서 알았는데 어떤게 다른지는 안적혀있어서 질문드립니다. - 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.
- 미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
npm install @tensorflow/tfjs-node 설치 중 에러 발생 질문입니다.
강의 3분 20초경 터미널에 입력하는 npm install "@tensorflow/tfjs-node" 명령어 입력시 에러 발생됩니다. 커뮤니티에 있는 방법으로 처음부터 다시 진행하였지만 지속적인 에러발생으로 도움 요청드립니다. 에러내용 첨부합니다. C:\Users\HUMANTECSOFT-04\Desktop\grab-market-server>npm install "@tensorflow/tfjs-node" npm WARN old lockfile npm WARN old lockfile The package-lock.json file was created with an old version of npm, npm WARN old lockfile so supplemental metadata must be fetched from the registry. npm WARN old lockfile npm WARN old lockfile This is a one-time fix-up, please be patient... npm WARN old lockfile npm ERR! code 1 npm ERR! path C:\Users\HUMANTECSOFT-04\Desktop\grab-market-server\node_modules\@tensorflow\tfjs-node npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/install.js npm ERR! CPU-windows-3.8.0.zip npm ERR! https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-2.5.0.zip npm ERR! node-pre-gyp install failed with error: Error: Command failed: node-pre-gyp install --fallback-to-build npm ERR! node-pre-gyp info it worked if it ends with ok npm ERR! node-pre-gyp info using node-pre-gyp@1.0.4 npm ERR! node-pre-gyp info using node@14.17.4 | win32 | x64 npm ERR! node-pre-gyp info check checked for "C:\Users\HUMANTECSOFT-04\Desktop\grab-market-server\node_modules\@tensorflow\tfjs-node\lib\napi-v8\tfjs_binding.node" (not found) npm ERR! node-pre-gyp http GET https://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/3.8.0/CPU-windows-3.8.0.zip npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/3.8.0/CPU-windows-3.8.0.zip npm ERR! node-pre-gyp WARN Pre-built binaries not installable for @tensorflow/tfjs-node@3.8.0 and node@14.17.4 (node-v83 ABI, unknown) (falling back to source compile with node-gyp) npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/3.8.0/CPU-windows-3.8.0.zip 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@14.17.4 | 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@14.17.4 | win32 | x64 npm ERR! gyp info find Python using Python version 2.7.9 found at "C:\Python27\python.exe" npm ERR! gyp ERR! find VS npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt npm ERR! gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details npm ERR! gyp ERR! find VS looking for Visual Studio 2015 npm ERR! gyp ERR! find VS - not found npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8 npm ERR! gyp ERR! find VS npm ERR! gyp ERR! find VS ************************************************************** npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload. npm ERR! gyp ERR! find VS For more information consult the documentation at: npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows npm ERR! gyp ERR! find VS ************************************************************** npm ERR! gyp ERR! find VS npm ERR! gyp ERR! configure error npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use npm ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Users\HUMANTECSOFT-04\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47) npm ERR! gyp ERR! stack at C:\Users\HUMANTECSOFT-04\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16 npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\HUMANTECSOFT-04\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14) npm ERR! gyp ERR! stack at C:\Users\HUMANTECSOFT-04\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14 npm ERR! gyp ERR! stack at C:\Users\HUMANTECSOFT-04\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16 npm ERR! gyp ERR! stack at C:\Users\HUMANTECSOFT-04\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7 npm ERR! gyp ERR! stack at C:\Users\HUMANTECSOFT-04\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16 npm ERR! gyp ERR! stack at ChildProcess.exithandler (child_process.js:397:5) npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:400:28) npm ERR! gyp ERR! stack at maybeClose (internal/child_process.js:1055:16) npm ERR! gyp ERR! System Windows_NT 10.0.19042 npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\HUMANTECSOFT-04\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\HUMANTECSOFT-04\\Desktop\\grab-market-server\\node_modules\\@tensorflow\\tfjs-node\\lib\\napi-v8\\tfjs_binding.node" "--module_name=tfjs_binding" "--module_path=C:\\Users\\HUMANTECSOFT-04\\Desktop\\grab-market-server\\node_modules\\@tensorflow\\tfjs-node\\lib\\napi-v8" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=8" "--node_napi_label=napi-v8" npm ERR! gyp ERR! cwd C:\Users\HUMANTECSOFT-04\Desktop\grab-market-server\node_modules\@tensorflow\tfjs-node npm ERR! gyp ERR! node -v v14.17.4 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:\Users\HUMANTECSOFT-04\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\HUMANTECSOFT-04\Desktop\grab-market-server\node_modules\@tensorflow\tfjs-node\lib\napi-v8\tfjs_binding.node --module_name=tfjs_binding --module_path=C:\Users\HUMANTECSOFT-04\Desktop\grab-market-server\node_modules\@tensorflow\tfjs-node\lib\napi-v8 --napi_version=8 --node_abi_napi=napi --napi_build_version=8 --node_napi_label=napi-v8' (1) npm ERR! node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\HUMANTECSOFT-04\Desktop\grab-market-server\node_modules\@mapbox\node-pre-gyp\lib\util\compile.js:89:23) npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (events.js:400:28) npm ERR! node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1055:16) npm ERR! node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.19042 npm ERR! node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\HUMANTECSOFT-04\\Desktop\\grab-market-server\\node_modules\\@mapbox\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" npm ERR! node-pre-gyp ERR! cwd C:\Users\HUMANTECSOFT-04\Desktop\grab-market-server\node_modules\@tensorflow\tfjs-node npm ERR! node-pre-gyp ERR! node -v v14.17.4 npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.4 npm ERR! node-pre-gyp ERR! not ok npm ERR! * Downloading libtensorflow npm ERR! npm ERR! * Building TensorFlow Node.js bindings npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\HUMANTECSOFT-04\AppData\Local\npm-cache\_logs\2021-08-13T02_43_45_266Z-debug.log ------------------------------------------------------------------------------------------------------------------ 개선 방법으로 1. 파이선 버전 2.7.9로 다운 2. npm install --global windows-build-tools (이부분도 설치시간이 상당히 오래걸리며 뻗는거 같습니다.) 3. npm i -g node-gyp (설치됨 확인했습니다.) 가능하면 원격지원 요청드립니다.
- 미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
Application error 발생하네요..
첫번째 질문과 같은 내용인데 heroku에 서버 배포한 후 링크에 접속하면 application error라는 화면과 함께 heroku logs --tail라는 명령어를 사용해 에러내역을 확인할 수 있다는 설명이 나오는데요 명령어를 치면 아래와 같은 에러 로그가 나옵니다.. 2021-08-12T08:31:28.495603+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/product" host=cns-market-server.herokuapp.com request_id=bc225d89-0c68-47aa-8645-4f47a3070914 fwd="122.40.66.2" dyno= connect= service= status=503 bytes= protocol=https 2021-08-12T08:31:29.649909+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/products" host=cns-market-server.herokuapp.com request_id=cbad85c6-e6b3-4242-a56b-84193bf4e3e2 fwd="122.40.66.2" dyno= connect= service= status=503 bytes= protocol=https 2021-08-12T08:31:30.323147+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=cns-market-server.herokuapp.com request_id=cfde8d99-32a8-4530-ae39-fafb1332f514 fwd="122.40.66.2" dyno= connect= service= status=503 bytes= protocol=https 2021-08-12T08:31:30.562650+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=cns-market-server.herokuapp.com request_id=f0f93240-35af-4b36-96df-a1ae3d1b6f6e fwd="122.40.66.2" dyno= connect= service= status=503 bytes= protocol=https 2021-08-12T08:34:20.501997+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cns-market-server.herokuapp.com request_id=3ab3a4a2-7a21-4e39-96d9-37d90a558f38 fwd="122.40.66.2" dyno= connect= service= status=503 bytes= protocol=https 2021-08-12T08:34:20.739831+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=cns-market-server.herokuapp.com request_id=06ed57ff-6c38-4ba2-88d6-7061096764d9 fwd="122.40.66.2" dyno= connect= service= status=503 bytes= protocol=https 2021-08-12T08:38:35.015107+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cns-market-server.herokuapp.com request_id=459f7523-24bb-4f04-b2f0-e19f69bf31ad fwd="122.40.66.2" dyno= connect= service= status=503 bytes= protocol=https 2021-08-12T08:38:35.241515+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=cns-market-server.herokuapp.com request_id=980e9520-a501-4c68-b4dc-8d5b27efe7ff fwd="122.40.66.2" dyno= connect= service= status=503 bytes= protocol=https 2021-08-12T08:40:45.493362+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cns-market-server.herokuapp.com request_id=1bc17b4c-40aa-42d2-95a3-c3ffb17ee9ee fwd="122.40.66.2" dyno= connect= service= status=503 bytes= protocol=https 2021-08-12T08:40:45.754321+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=cns-market-server.herokuapp.com request_id=6854ce8c-bf3c-4138-8321-990ab77b44bf fwd="122.40.66.2" dyno= connect= service= status=503 bytes= protocol=https 2021-08-12T08:40:59.354469+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cns-market-server.herokuapp.com request_id=de9e37c8-1575-4011-a531-4277660af310 fwd="122.40.66.2" dyno= connect= service= status=503 bytes= protocol=https 2021-08-12T08:40:59.603943+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=cns-market-server.herokuapp.com request_id=b8418fdd-1287-4298-9a40-587671989bc7 fwd="122.40.66.2" dyno= connect= service= status=503 bytes= protocol=https 2021-08-12T08:49:40.640664+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cns-market-server.herokuapp.com request_id=02803cf7-06b0-4c8d-8cd6-04c426848614 fwd="122.40.66.2" dyno= connect= service= status=503 bytes= protocol=https 2021-08-12T08:49:40.857902+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=cns-market-server.herokuapp.com request_id=30fae789-9ef9-4975-bbd0-5e9894f9910f fwd="122.40.66.2" dyno= connect= service= status=503 bytes= protocol=https 2021-08-12T08:52:50.646041+00:00 heroku[web.1]: State changed from crashed to starting git heroku push 할 때는 특별한 log 보이지 않았고 Local로 동작시 이상없이 동작합니다..검토 부탁 드립니다.
- 미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
상품정보들이 정렬된 모습으로 받아오질 못합니다
영상의 1분 11초 부분과는 다르게 정렬이 안된 모습으로 페이지에 표시됩니다 ㅠㅠ 어떻게 해야할까요? server.js 사진도 같이 첨부합니다 !
- 미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
return에 대해 좀더 알고싶습니다
나름 열심히 생각해보고 풀어봤는데 선생님 코드와 살짝 다르고 return에 대해 아직 헷갈리더라고요.. 마지막에 return을 썼을때 GetExpensiveProduct(allProducts)을 하면 저렇게 바로 나오는데 return을 안쓰고 GetExpensiveProduct(allProducts)를 쓰면 에러는 안나는데 undefined라고 뜨네요. return의 정의를 좀더 자세하게 알수 있을까요?
- 미해결비전공자를 위한 진짜 입문 올인원 개발 부트캠프
useState의 기본값이 null과 []일 때에 대해서
이번 강의에서 useState를 사용하다가 문득 궁금증이 생겻습니다. function ProductPage() { const { id } = useParams(); const [product, setState] = useState(null); 상품상세페이지를 구현한 코드에서 useState(null)로 기본값을 null을 주었습니다. function MainPage() { const [products, setProducts] = React.useState([]); const [banners, setBanners] = React.useState([]); 그런데 메인페이지를 구현한 코드에서 useState([])와 무슨 차이가 있을까 궁금해서 실습을 해봤습니다. function MainPage() { const [products, setProducts] = React.useState(null); const [banners, setBanners] = React.useState(null); 그 결과 이런 오류가 떴고 나름 혼자서 여러번 고민해 본 결과 --------------------------------------------------------- axios에서 통신을 하는 동시에 banners.map 처리를 하는 과정에서 banners가 기본값 null을 가지고 있는 상태기 때문에 map 메소드를 사용할 수 없다. 따라서 비동기 처리가 원인이고 banners의 기본값으로 빈 배열을 할당해 줘야 banners.map을 처리하는 과정에서 오류가 나지 않고 이후에 axios 통신이 끝나고 setBanners를 통해 새롭게 값을 받으면 컴포넌트가 다시 랜더링되어 클라이언트 화면에 보여지게 된다. --------------------------------------------------------- 이렇게 결론을 내봤는데 그랩 님 고견은 어떠신지..ㅜㅜ 완전 입문자라 구글링 해봐도 어려운 내용들이 많아서 저처럼 이런 기본적인 글은 없더라구요;;; 그랩 님 강의 잘 듣고 있습니다 감사합니다!