본문 바로가기

Vue.js

vue-springBoot 연동 환경세팅 기록(DB 이전 단계) (2023.11.03) 아직 DB 연결 안하고 vue랑 springBoot 로 axios , api 로 데이터 왕복까지 세팅 ▷ 환경 ▶ backend > PORT : http://localhost: 8088 > application.properties에 server.port = 8088 하나만 씀 mvc패턴 정의 안함. - jdk > Version: 1.8 > sts4 구동 시 JavaSE11 버전 썼더니 안된다고 오류떠서 정정함 > jdk 적용 시 프로젝트 우측 마우스에서 build path 랑 properties > project facets 둘 다 바꿔줘야댐 - sts > Version: 4 > spring.io 에서 maven, 1.8, 스프링 버전은 아무거나, (lombok, spring we.. 더보기
(Vue.js) Uncaught TypeError: Cannot read properties of undefined (reading 'use') 그리고 (0 , vuex__WEBPACK_IMPORTED_MODULE_1__.createStore) is not a functionTypeError: (0 , vuex__WEBPACK_IMPORTED_MODULE_1__.createStore) is not a function (2023.10.27) 처음에는 router 세팅 시 Vue.use(VueRouter); 를 쓰는데 계속 아래처럼 use를 사용할 수 없었다. > Uncaught TypeError: Cannot read properties of undefined (reading 'use') cli, vue 버전때문이라 판단하고 (vue3 사용) - router > index.js import { createWebHistory, createRouter } from "vue-router"; export const router = createRouter({ history: createWebHistory(), routes: [ ], }); - main.js import { createApp } from "vue"; import.. 더보기
(Vus.js) This is related to npm not being able to find a file. 에러 (2023.10.27) 평소같이 vue에서 npm run serve를 하는데 다음과 같은 에러가 뜨면서 시작이 안됨 npm ERR! path C:\JBWorkspace\vueLearn\package.json npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file or directory, open 'C:\JBWorkspace\vueLearn\package.json' npm ERR! enoent This is related to npm not being able to find a file. > 현재 경로는 C:\JBWorkspace\vueLearn\ 이거였는데 package.json은 하위 폴더인 C:\JBWorkspace\vueLearn\vue-news 에 .. 더보기