Closed rosenfeldalon closed 2 years ago
Currency library is in transition mode supporting both Vue version 2 in version 3. However a composition API function is only available when you have version 3 explicitly used,
So the idea is you should not be using composition API functionality of vue-masonry with compatibility plugin on Vue 2
Thanks for the quick reply, it seems that the error is caused on vue-masonry/src/masonry.plugin.js line 102
Events.emit(
${EVENT_DESTROY}__${masonryId})
in the unbind function,
perhaps doing the checks you've done checking if Vue2 will solve this error:
Events[
${isVue2 ? '$' : ''}emit](
${EVENT_ADD}__${masonryId})
Regards,
Please take a look at PR https://github.com/shershen08/vue-masonry/pull/123
merged, thanks
Is this fixed in version 0.14.0 ? I still see this error. Thanks in advance
hey @shershen08 any thoughts on releasing a patch version with the fix? perhaps 14.1 will be much appreciated!
Regards,
@rosenfeldalon published 0.14.1 just now - https://www.npmjs.com/package/vue-masonry
please upgrade and give it a try
@shershen08 Thanks! There is something strange with the version release, the version in npm is marked as 0.14.1 but the GitHub repo is still 0.14.0, the README.md file does show 0.14.1 but the masonry.plugin.js file with the fix on line 102 is not included...
When instal the new version is the problem fixed?
no, as I mentioned the fix is not included in the masonry.plugin.js file as shown in the PR for some reason https://github.com/shershen08/vue-masonry/pull/123/files
this Is after removing node_modules before clean install
@shershen08 perhaps there was something that went wrong in the merge, see attached screenshots, hope this will help clarify the situation:
Regards,
guys, will fix it today.
@rosenfeldalon @seonwoo960000 i've just published 0.15.0 please check if that is OK now?
On version 0.14.0 using Vue 2 with TypeScript and composition API, when leaving component that uses vue-masonary gets the following error:
vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in directive masonry unbind hook: "TypeError: Events.emit is not a function"