Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module parse error: node_modules\quill\dist\quill.snow.css Unexpected token (7:0) #10

Closed
jtundag opened this issue Jan 4, 2017 · 7 comments

Comments

@jtundag
Copy link

jtundag commented Jan 4, 2017

Why am I getting this error? I'm using default laravel 5.3 setup

Module parse failed: C:\laragon\www\projectname\node_modules\quill\dist\quill.snow.css Unexpected token (1:0) You may need an appropriate loader to handle this file type. | .ql-container { | box-sizing: border-box; | font-family: Helvetica, Arial, sans-serif; @ ./~/buble-loader!./~/vue-loader/lib/selector.js?type=script&index=0!./~/vue-quill-editor/editor.vue 6:0-36 @ ./~/vue-quill-editor/editor.vue @ ./~/vue-quill-editor/index.js @ ./assets/src/js/admin/main.js./~/quill/dist/quill.bubble.css

@surmon-china
Copy link
Owner

Try adding style-loader and css-loader parsers in the webpack, and most of these errors are caused by the parser.

@surmon-china
Copy link
Owner

@jtundag
Copy link
Author

jtundag commented Jan 5, 2017

It worked! but another warning appeared

[Vue warn]: Failed to mount component: template or render function not defined. (found in component <quill-editor>)

EDIT: Please disregard this issue, fixed it using Vue.component('quill-editor', VueQuillEditor.quillEditor);

Thank you so much 👍

@surmon-china
Copy link
Owner

well.

@atomek1000
Copy link

Thanks @crow1796 !!

For anyone having same issues with VueQuillEditor / vue-quill-editor and using webpack vue cli
here is another way to do it

import VueQuillEditor from 'vue-quill-editor'  
 components: { 
           VueQuillEditor:VueQuillEditor.quillEditor 
      },

@surmon-china
Copy link
Owner

surmon-china commented Jun 4, 2017

import { quillEditor } from 'vue-quill-editor'  
components: { 
      VueQuillEditor: quillEditor
}

@zainulmutaqin
Copy link

import { quillEditor } from 'vue-quill-editor'  
components: { 
      VueQuillEditor: quillEditor
}

what file to located this syntax ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants