inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

Vue.js 제대로 배워볼래?(Vue.js 프로젝트 투입 일주일 전)

제품 판매 웹앱 구현 미니 프로젝트 소개 영상

Proxy error: Could not proxy request /api/productList from localhost:8080 to http://127.0.0.1:3000. See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).

1146

front

작성한 질문수 8

0

몇일째 이걸로 잡혀있어요 ㅠㅜㅠ
외부 호스트에서 접근 해서 그렇다는데 ㅠㅜㅠㅜ
Proxy error: Could not proxy request /api/productList from localhost:8080 to http://127.0.0.1:3000. See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).
 
 
개발자 모드에서는
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'data')
    at _callee$ (mixins.js?9c9e:8)
    at tryCatch (runtime.js?96cf:63)
    at Generator.invoke [as _invoke] (runtime.js?96cf:294)
    at Generator.eval [as next] (runtime.js?96cf:119)
    at asyncGeneratorStep (asyncToGenerator.js?1da1:3)
  at _next (asyncToGenerator.js?1da1:25)
 
이라고 뜨는데 아마 서버에서 값을 못가져 오는 거 같은데 ㅠㅜㅠㅜ
선생님 너무 답답해여 ㅠ

Proxyerror vuejs vuex

답변 2

0

front

이미 적혀 져 있습니다 ㅠㅜㅠ

0

개발자의 품격

vue.config.js 파일 프로젝트 루트 폴더에 만들고 아래 코드 넣으세요. 그리고 서버 재시작

 

 const target = 'http://127.0.0.1:3000';

 module.exports = {

 devServer: {

    port: 8080,

    proxy: {

      '^/api': {

        target,

        changeOrigin: true

      },

       '^/upload': {

        target,

         changeOrigin: true,

       },

      '^/download': {

        target,

        changeOrigin: true,

      }     

}

   }

 }

 

google login 를 따라하다가 오류 발생

0

937

1

Expected indentation of 2 spaces but found 4 오류

0

874

1

카카오 로그인 에러가 뜨세요

0

434

1

Multi-word질문드립니다.

0

234

2

설치 이후 npm run serve 화면 안나옴

0

651

1

vue cli 문제

0

361

2

요청드립니다.

0

160

0

eslint 에러발생

0

1384

1

main.js 질문드립니다.

0

228

1

vuex-persistedstate 는 동작 자체를 안하네요?

0

371

1

15강.조회화면 저장실습 - params안됨

0

286

1

array 넘겨주기

0

164

0

유튜브 4시간 강의와는 어떤 차이가 있을까요?

0

286

1

prefetch기능

0

738

1

테이블 list 랜더링 되지 않습니다.

0

254

1

펑션을 한 depth 더 들어가면 $호출이 안되는 이유가 뭘까요?

0

288

2

name 값이 없는 경우 오류

0

209

1

vue config 파일 문의

0

346

1

실무 레벨에서 공통코드(기준정보)는 어떻게 구현 할까요?

0

327

1

강의자료가 따로 있나요?

0

362

1

computed 대신 직접 this.$store.state.user 사용은 안되나요?

0

171

0

lazy-load의 성능에 대해서 질문이 있습니다.

0

205

0

Prefetch 관련 질문 드립니다.

0

143

1

저는 왜 하나의 단어가 지정이 안될까요?

0

313

1