mengxiong10 / vue-datepicker-next

A datepicker / datetimepicker component for Vue3
https://mengxiong10.github.io/vue-datepicker-next/
MIT License
147 stars 34 forks source link

[Bug] cannot run vue-datepicker-next in vue/compat - mode #64

Closed schubifix closed 2 months ago

schubifix commented 2 months ago

Datepicker version: vue-datepicker-next 1.0.3 Vue version: 3.4.21 with @vue/compat in full compat mode Browser: Chrome 123.0.6312.58

Steps to reproduce

Reproduction Link or Source Code

Expected behavior

Actual behavior

Annotation after some debugging I do assume @vue/compat does suspect vue-datepicker-next to be a vue2 component. Because of this it generates a compatibity layer around the component, whereby all the props get lost. I cannot tell (yet), why @vue/compat acts like this but I've never seen this behaviour before (allthough I already migrated applications with around 500 components, also third party)

Workaround is to use old dependency until all compatibility issues are fixed, then switch compat mode of and then migrate to vue-datepicker-next.

vueDatepickerCompatibilityMode.patch.gz

schubifix commented 2 months ago

duplicate to https://github.com/mengxiong10/vue-datepicker-next/issues/41, sorry for the inconvenience