【问题标题】:Vue.js vue-html5-editorVue.js vue-html5-editor
【发布时间】:2016-10-21 18:46:30
【问题描述】:

我正在使用 browserify,我正在尝试使用 vue-html5-editor https://github.com/PeakTai/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'

可能出了什么问题?

【问题讨论】:

    标签: javascript html vue.js


    【解决方案1】:

    看起来您缺少此依赖项。

    npm install css-loader --save

    或者

    npm install css-loader --save-dev

    这两个命令都会安装 css-loader npm 包。

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

    或者 - 如果您使用 Yarn,您可以使用 yarn add css-loader

    【讨论】:

    • yarn add css-loader --dev
    猜你喜欢
    • 2022-07-07
    • 2018-09-23
    • 2021-10-05
    • 1970-01-01
    • 2022-08-24
    • 2016-07-23
    • 2018-07-07
    • 2017-05-27
    • 2017-05-13
    相关资源
    最近更新 更多