motla / vue-document-editor

:page_facing_up: Paper-sized WYSIWYG document editor for Vue apps
https://motla.github.io/vue-document-editor/
MIT License
313 stars 70 forks source link

Syntax Error: Unexpected token (299:56) #38

Closed dastanzholdas closed 11 months ago

dastanzholdas commented 11 months ago

"vue": "^2.6.10", "vue-document-editor": "^1.5.1"

image image In emit_new_content methods

motla commented 11 months ago

what compiler are you using? can you share your package.json file?

VoronVoronov commented 11 months ago

package.json

motla commented 11 months ago

indeed your project seems old, it uses outdated libraries and some newer Javascript language additions like destructuring which are used here are not understood by the compiler. Try to update all your dependencies, especially Webpack. Or you can start a new project from scratch using the new workflow (Vue3 + Vite) https://vuejs.org/guide/quick-start