Closed lahdekorpi closed 2 years ago
Oddly enough, with Vite, everything works perfectly when running just the dev server.
When commenting out the nextTick import and its use, the build goes through. But the missing redraw will probably cause some issues?
i have a similar problem with Vite and Vue 3. I tried to build with npm, yarn, pnpm and have a problem with nextTick import
@7architect Your logs say you're trying to import nextTick
from vue@2.6.12
..?
I am running into the same issue with Vite, Vue 3 and Rollup. Works fine with Vite dev and when I use the component elsewhere via Webpack. But Vite build yields the same issues as above.
I was able to get this to work with Rollup by forking it and simply updating the Vue version to ^3 and rebuilding.
I use vite + vue3 and have same trouble. When I renamed node_modules/vue-masonry/node_modules folder, then it seems work. Is this folder required?
this is because "vue": "^2.0.0"
in depencies.
so vue2 is installed in this packages node_modules and imported there.
@shershen08 you could install vue-demi and import from therei if you want to support two vue versions. And update depencies to "vue": "^2.0.0 || ^3.2.0"
i've created a0.14.0-beta.0
version to test v2/v3 works smoothly
please try to install and have a look
src/masonry-vue3.plugin.js
is still there for compatibility, will be removed in final version0.14.0
0.14.0-beta.0
Works perfectly. π Thank you!
Rollup build fails due to nextTick missing.