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

Unexpected token export #4

Open
darioAnongba opened this issue Jun 2, 2017 · 4 comments
Open

Unexpected token export #4

darioAnongba opened this issue Jun 2, 2017 · 4 comments

Comments

@darioAnongba
Copy link

Hi !

I just tried to use your module into React-Quill and it almost works but there is an issue. Why did you use export instead of "default export" ? Without this fix, I got an error:
"Unexpected token export"

I just copy pasted your implementation and modified this and it worked. I won't do a pull request because it's just one single word to add (and then change the demo to "import ImageDrop from..." instead of "import {ImageDrop} from ..."

Here the default export is better because ImageDrop is the only thing class you are exporting.

@luther-nwpu
Copy link

Hi How to run it

@tagmetag
Copy link

Please update this issues

@merrylmr
Copy link

imageDrop引入之后,Unexpected token export错误。(vue-quill-editor下),请问是什么原因?
image

@valoricDe
Copy link

You can add following script to your npm script section: "node-modules": "DIR=node_modules/quill-image-drop-module && babel $DIR/src --out-dir $DIR/dist --source-maps",
it's a hack but it works

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

No branches or pull requests

5 participants