<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中的东西下下来就没动过为什么会报错求解答
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