하루하나
close
프로필 배경
프로필 로고

하루하나

  • ALL (217)
    • 쿠베플로우 kubeflow (1)
    • React Native (1)
      • Expo (1)
    • Programming (187)
      • spring+jwt+react (4)
      • wordpress (3)
      • Vultr (1)
      • Flutter (3)
      • Vue-project (1)
      • Vue-tip (17)
      • AngularJS (12)
      • Bootstrap (2)
      • Book (1)
      • CentOS (5)
      • Code (0)
      • Css (13)
      • Docker (7)
      • Eclipse (1)
      • Freemarker (1)
      • Git (9)
      • Front-End (6)
      • Error (7)
      • Gulp.js (0)
      • Java (12)
      • Python (5)
      • Javascript (19)
      • JPA (5)
      • jQuery (2)
      • Mac (6)
      • MySql (4)
      • Springboot (21)
      • Springboot-blog (0)
      • Daily (1)
      • Springboot-tip (3)
      • Spring (1)
      • Thymeleaf (1)
      • Tomcat (1)
      • Typescript (3)
      • Tool (5)
      • Sql (1)
      • prisma (1)
      • react (1)
    • Life (14)
      • Review (0)
      • Tip (3)
      • 리뷰 (8)
      • 부동산 (2)
  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

[vuejs] Uncaught SyntaxError: Unexpected token <

vuecli3을 이용해서 프론트를 개발중인데 router 특정주소를 redirect하거나 하면 제목과 같은 오류가 발생열심히 구글링 한 결과 index.html 의 header에 아래 코드를 넣으라고.. 뭐야 이거하면서 넣어봤는데 진짜로 된다...웹팩 버그인듯? 출처: https://github.com/vuejs-templates/pwa/issues/165

  • format_list_bulleted Programming/Vue-tip
  • · 2018. 11. 16.
  • textsms

vue-cli3 proxy 설정

vue-clli가 3으로 버전업이 되면서 프록시 설정부분이 살짝 달라졌습니다. 우선 설정파일이 없어서 생성해야 합니다. root 폴더에 vue.config.js 라는 파일을 만들고'use strict' module.exports = { devServer: { proxy: { // proxyTable 설정 '/api': { target: 'http://localhost:8080', changeOrigin: true } } } } 위와같이 설정해주시면 됩니다. 경로와 target을 설정해주시고 다시 실행하시면 정상동작을 확인 할 수 있습니다.

  • format_list_bulleted Programming/Vue-tip
  • · 2018. 10. 30.
  • textsms
  • navigate_before
  • 1
  • navigate_next
반응형
공지사항
전체 카테고리
  • ALL (217)
    • 쿠베플로우 kubeflow (1)
    • React Native (1)
      • Expo (1)
    • Programming (187)
      • spring+jwt+react (4)
      • wordpress (3)
      • Vultr (1)
      • Flutter (3)
      • Vue-project (1)
      • Vue-tip (17)
      • AngularJS (12)
      • Bootstrap (2)
      • Book (1)
      • CentOS (5)
      • Code (0)
      • Css (13)
      • Docker (7)
      • Eclipse (1)
      • Freemarker (1)
      • Git (9)
      • Front-End (6)
      • Error (7)
      • Gulp.js (0)
      • Java (12)
      • Python (5)
      • Javascript (19)
      • JPA (5)
      • jQuery (2)
      • Mac (6)
      • MySql (4)
      • Springboot (21)
      • Springboot-blog (0)
      • Daily (1)
      • Springboot-tip (3)
      • Spring (1)
      • Thymeleaf (1)
      • Tomcat (1)
      • Typescript (3)
      • Tool (5)
      • Sql (1)
      • prisma (1)
      • react (1)
    • Life (14)
      • Review (0)
      • Tip (3)
      • 리뷰 (8)
      • 부동산 (2)
최근 글
인기 글
최근 댓글
태그
  • #springboot
  • #css
  • #error
  • #MySQL
  • #sts
  • #Vue
  • #AngularJS
  • #GIT
  • #JPA
  • #javascript
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바