For anyone who wants to keep using this repo in vue3 project.
The following is all you need to use this plugin in your vue3 project, especially for those project migrated from vue2.
- clone this repo
- apply the attached patch
- copy the source code to your project
-
npm install --save resize-observer-polyfill -
npm uninstall vue-js-modal - import your local
vue-js-modalinstead of the original 'vue-js-modal' - none
Hi @imndx, which node version did you use to build the project with patched code?
Also the patched code uses createVNode function, which was replaced by h in Vue 3. What am I missing?
bump
Hi @imndx, which node version did you use to build the project with patched code?
18.9.0
If you’re still having issues adapting this modal to Vue 3, please take a look at this article: Fixing vue-js-modal for Vue 3: A Guide to Restoring Modal Functionality.
If you’re still having issues adapting this modal to Vue 3, please take a look at this article: Fixing vue-js-modal for Vue 3: A Guide to Restoring Modal Functionality.
Thanks for the write-up. It would be awesome if you could publish a fork on Github with the changes detailed in your article!