Using the composition API, you use plugins on the created App instance, e.g.
return createApp({ render: () => h(app, props) })
.use(wysiwyg)
// ...
Be part of JetBrains PHPverse 2026 on June 9 ā a free online event bringing PHP devs worldwide together.
Hi, I am trying to add a VUE package to my laravel jetstream using Laravel/Inertia. The package requires adding the following to the main JS file
import wysiwyg from "vue-wysiwyg"; Vue.use(wysiwyg, {}); // config is optional. more below
Which is causing the error in the terminal Uncaught ReferenceError: Vue is not defined
Obviously I can see Vue is not defined as usual with the jetstream setup - I am just wondering how I achieve this? I am sure I am missing something simple/obvious - but new to this setup and wondering if anybody can shed any light on this?
Just looking at that vue-wysiwyg package on npm, it is 3 years since it was published; will it even work with Vue3???
Please or to participate in this conversation.