defineModel with multiple Types throws a warning #9580
-
I am posting this in the discussion section as it's quite hard to provide a reproducible online version. But basically, what is happening is that we have a component, let's say a Switch, that has the following:
This is in our library. We build it and install it into another project. In the consuming app, when we use
We get a warning that the We tried to reproduce this on a StackBlitz, but we could not make the warning appear, as the build suppresses warnings.
I know defineModel is still experimental feature, but is this an intended behaviour? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It looks like a bug. Not sure on first sight though, haven't personally followed the implementation of that proposal. Here's a reproduction, anyways: |
Beta Was this translation helpful? Give feedback.
It looks like a bug.
Not sure on first sight though, haven't personally followed the implementation of that proposal.
Here's a reproduction, anyways:
https://play.vuejs.org/#eNqFUstOwzAQ/JXFlxapNEK9VWklQJUAiYcAwcWXNN2mKY5t+VGKQv6dtUNDQTxO9s7semc9W7MTrYcbj2zMUpubUjuw6LwGkcliwpmznE25LCutjIMaDC6hgaVRFfSorNdRZ6rSLc7ZMAlReJYzLrnMlbQOKlvAJDzQ752jEAqelBGLg94hl2nS9qZOFDistMgcUgSQro6ndR2LmyZNKIpobLc5qtQCBckkmjNIiEuTrpwNSD71XpbFcG2VpBnrUMxZTtWlQHOjXUnaOBtDZAKXkbSXy4g543Gww/MV5s8/4Gu7DRhntwYtmg3N3HEuMwW6lp7dX+OW7h1J2r2g7D/IO7RK+KCxTTv1ckGy9/Ki2otoQSmLBzvbOpR2N1QQGjKbmM8ZORI+7rfRP+WOhqNYx2VDv7hz858l+bA5WPKYCY/k9gKXpcSrAKXWGZIIbyB9NUcTL0LQMVdKYCan/a+b8G0PSqm9A/eqMXSMv7W/AF3XKGV/C5p3e9v5Lg==