Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
564 views
in Technique[技术] by (71.8m points)

在vue脚手架中使用vue-quill-editor富文本编辑器的问题

<template>
    <div>
        <quill-editor ref="myTextEditor" v-model="content" :config="editorOption"></quill-editor>
    </div>
</template>
<script>
import {
    quillEditor
} from 'vue-quill-editor';

export default {
    data: function() {
        return {
            content: '',
            editorOption: {}
        }
    },
    components: {
        quillEditor
    }
}
</script>


报错为:
index.js:7 Uncaught Error: Cannot find module "./editor.vue"


是说在node modules中找不到这个组件,还说You may need an appropriate loader to handle this file type.但是node_modules中的东西下下来就没动过为什么会报错求解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

ERROR in ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./~/.2.3.0@vue-quill-editor/src/editor.vue
Module not found: Error: Cannot resolve module 'style' in E:jackielilongyuanWorkvue-longyuan-stroe-frontnode_modules.2.3.0@vue-quill-editorsrc
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./~/.2.3.0@vue-quill-editor/src/editor.vue 8:0-36

ERROR in ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./~/.2.3.0@vue-quill-editor/src/editor.vue
Module not found: Error: Cannot resolve module 'style' in E:jackielilongyuanWorkvue-longyuan-stroe-frontnode_modules.2.3.0@vue-quill-editorsrc
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./~/.2.3.0@vue-quill-editor/src/editor.vue 9:0-38

ERROR in ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./~/.2.3.0@vue-quill-editor/src/editor.vue
Module not found: Error: Cannot resolve module 'style' in E:jackielilongyuanWorkvue-longyuan-stroe-frontnode_modules.2.3.0@vue-quill-editorsrc
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./~/.2.3.0@vue-quill-editor/src/editor.vue 10:0-36


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...