2017-11-16 8 views
0

vue init webpack-simpleを使用してプロジェクトをスキャフォールドしました。私はAT-UIKITコンポーネントライブラリを使用するように期待していますが、私はのWebPACKから以下のコンパイルエラーで会った:ここ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とのWebPACKに新しいです。私はこれを修正するために特定のローダーをインストールするのですか?ご協力いただきありがとうございます。

+0

:https://stackoverflow.com/questions/31493716/webpack-less-error-it-cant-resolve-ttf-and-woff2-をファイルからウイキット – puoygae

答えて

0

あなたはinstallプラグインを忘れています。

あなたmain.jsにコードを追加します。

解決
Vue.use(AtComponents) 
関連する問題