728x90
1118 api key .env .local
AxiosError: Request failed with status code 403\n at settle (webpack-internal:///./node_modules/axios/lib/core/settle.js:24:12)\n at XMLHttpRequest.onloadend (webpack-internal:///./node_modules/axios/lib/adapters/xhr.js:103:66)
env local에 api key값을 넣고, 서버를 껐다가 다시 켰는데도 api key값을 읽지 못하는 문제가 발생했다.
https://github.com/vuejs/vue-cli/issues/767
Env variables don't seem to load from a .env file on the new cli · Issue #767 · vuejs/vue-cli
Version 3.0.0-alpha.5 Reproduction link https://github.com/alexjoverm/vue-cli-env-reproduce Steps to reproduce Clone, run npm install and npm run serve on the repo provided. What is expected? Accor...
github.com
key 값은 VUE_APP으로 시작하게 설정되어 있었고, touch-cli-g가 설치되지 않았던 게 문제였다
- npm install touch-cli -g
728x90
'Trouble Shootings' 카테고리의 다른 글
[스프링] Spring messages.properties 한글 인코딩 (0) | 2022.12.23 |
---|---|
[Vue.js] vue 이미지 src 동적 연결 (v-bind) (0) | 2022.11.20 |
[intellij/spring] 인텔리제이 spring boot annotation "Cannot read symbol" (0) | 2022.11.20 |
[크롬 Chrome] 확장 프로그램 다운로드 / 실행 실패 (0) | 2022.11.07 |
[스프링 부트] 파일 업로드 시 static 정적 경로 설정 (0) | 2022.10.28 |