2017-11-16 2 views
0

vue init webpack-simple을 사용하여 프로젝트를 스캐 폴딩했습니다. 나는 AT-UIKIT 구성 요소 라이브러리를 사용 바라고 있지만 웹팩에서 다음 컴파일 오류와 함께 만났다 :VueJS + AT UIKIT : 컴파일하지 못했습니다

여기
Failed to compile. 

./node_modules/at-ui-style/css/fonts/feather.ttf?t=1501829003743 
Module parse failed: Unexpected character '' (1:0) 
You may need an appropriate loader to handle this file type. 
(Source code omitted for this binary file) 
@ ./node_modules/css-loader!./node_modules/at-ui-style/css/at.css 6:71718-71764 
@ ./node_modules/at-ui-style/css/at.css 
@ ./src/main.js 
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js 

내 main.js :

import Vue from 'vue' 
import App from './App.vue' 

import AtComponents from 'at-ui' 
import 'at-ui-style' // Import CSS 

new Vue({ 
    el: '#app', 
    render: h => h(App) 
}) 

나는 VueJS 및 웹팩 새로운 오전. 이 문제를 해결하기 위해 특정 로더를 설치해야합니까? 도와 주셔서 감사합니다.

+0

해결 : https://stackoverflow.com/questions/31493716/webpack-less-error-it-cant-resolve-ttf-and-woff2- files-from-uikit – puoygae

답변

0

install 플러그인을 잊어 버렸습니다. 당신 main.js에서

추가 코드 :

Vue.use(AtComponents) 
관련 문제