2016-10-21 14 views
1

私はbrowserifyを使用しています。私はvue-html5-editorhttps://github.com/PeakTai/vue-html5-editorを使用しようとしています。Vue.js vue-html5-editor

しかし、私はこのしようとすると:

Vue.use(require('vue-html5-editor')); 

を私はエラーが表示されます。

{ Error: Cannot find module '!!./../../../node_modules/css-loader/index.js!./../../../node_modules/vue-loader/lib/style-rewriter.js!./../../../node_modules/vue-loader/lib/selector.js?type=style&index=0!./dashboard.vue' from '/Users/egen/Code/forum/node_modules/vue-html5-editor/dist' 

間違っている可能性が何?

答えて

4

この依存関係が欠落しているようです。

npm install css-loader --save

それとも

npm install css-loader --save-dev

どちらのコマンドも、CSS-ローダーNPMパッケージをインストールします。

https://www.npmjs.com/package/css-loader

代わりに - あなたは糸を使用している場合、あなたはyarn add css-loaderを使用することができます。

+0

または 'yarn add css-loader --dev' –