karol-f / vue-custom-element

Vue Custom Element - Web Components' Custom Elements for Vue.js
https://karol-f.github.io/vue-custom-element/
MIT License
1.97k stars 187 forks source link

Error using multiple prop types: Uncaught TypeError: overrideType is not a function #102

Closed dmlinn closed 6 years ago

dmlinn commented 6 years ago

It appears that VCE does not account for multiple prop types in Vue.

In a Vue component, provide an array of prop types to reproduce: type: [Object, String]

At line 160 of vue-custom-element.esm.js, a function is expected when an array is given: screen shot 2018-04-16 at 10 31 34 am

Version is v3.0.2

karol-f commented 6 years ago

Thanks for pointing that out. Will fix soon

karol-f commented 6 years ago

Fixed in vue-custom-element@3.0.3. Thanks for reporting!

dmlinn commented 6 years ago

That was fast! Thanks @karol-f