surmon-china / vue-quill-editor

@quilljs editor component for @vuejs(2)
https://github.surmon.me/vue-quill-editor
MIT License
7.39k stars 1.03k forks source link

报错:You may need an appropriate loader to handle this file type. #15

Closed clown-doll closed 7 years ago

clown-doll commented 7 years ago

引用报这个错误: ERROR in ./~/vue-quill-editor/editor.vue Module parse failed: G:\catWork\CaseCollections-admin\node_modules\vue-quill-editor\editor.vue Unexpected token (1:0) You may need an appropriate loader to handle this file type. SyntaxError: Unexpected token (1:0)

webpack里有对.vue的处理: {test: /.vue$/, loader: 'vue', include: path.join(__dirname, 'src')}

surmon-china commented 7 years ago

It is recommended to use vue-cli to initialize your webpack project, otherwise there may be a variety of unpredictable problems.