일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- 개발자
- C
- Portfolio
- 해석
- mariadb
- MySQL
- 컴퓨터과학총론
- android
- php
- 번역
- 개발
- 안드로이드
- C lanuage
- server
- it
- javascript
- 한글
- 프래그먼트
- java
- NGINX
- kakao
- techEmpower
- 자바
- 구글
- H2O
- centOS7
- error
- caddy
- unity
- ubuntu
- Today
- Total
개발모음집
Library import error 본문
web 브라우저 컨솔창에서 본 에러
cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vuetify-loader/lib/loader.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/Home.vue?vue&type=script&lang=js&:2 Uncaught Error: Cannot find module 'Axios'
at webpackMissingModule (cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vuetify-loader/lib/loader.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/Home.vue?vue&type=script&lang=js&:2)
at eval (cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vuetify-loader/lib/loader.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/Home.vue?vue&type=script&lang=js&:2)
at Module../node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/vuetify-loader/lib/loader.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/Home.vue?vue&type=script&lang=js& (app.js:3296)
at __webpack_require__ (app.js:767)
at fn (app.js:130)
at eval (Home.vue?7aaa:1)
at Module../src/views/Home.vue?vue&type=script&lang=js& (app.js:11565)
at __webpack_require__ (app.js:767)
at fn (app.js:130)
at eval (Home.vue?2908:1)
빌드할 때 에러
This dependency was not found:
* Axios in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vuetify-loader/lib/loader.js!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/Home.vue?vue&type=script&lang=js&
To install it, you can run: npm install --save Axios
코드에서
import axios from 'Axios'
이렇게 작성.
import axios from 'axios'
대소문자구분함..
그래서 Axios가 없는 라이브러리이니 없는 라이브러리라고 에러를 내뱉는 것
'client > Vue' 카테고리의 다른 글
Unknown custom element: <> - did you register the component correctly? For recursive components, make sure to provide the "name" option. (0) | 2019.02.07 |
---|---|
vue lecture curl example (0) | 2019.02.04 |
vue axios example (0) | 2019.02.04 |
Vue Http Request (XMLHttpRequest) (0) | 2019.02.04 |
Vue delay (0) | 2019.02.03 |