I work on vuejs apps that are partly migrated to typescript. Since version 1.8.12 we get new type errors that haven't been there before. Take a look at this code.
This gives me the error:
src/App.vue:3:8 - error TS2345: Argument of type '{}' is not assignable to parameter of type 'never'.
I see these errors all over my projects because we use partly typescript, partly javascript. When I insert defineComponent in MyMixin.js, everything works fine. But is this breaking change really intended? Until version 1.8.11 everything worked fine.
I work on vuejs apps that are partly migrated to typescript. Since version 1.8.12 we get new type errors that haven't been there before. Take a look at this code.
App.vue
MyMixin.js
This gives me the error:
src/App.vue:3:8 - error TS2345: Argument of type '{}' is not assignable to parameter of type 'never'.
I see these errors all over my projects because we use partly typescript, partly javascript. When I insertdefineComponent
inMyMixin.js
, everything works fine. But is this breaking change really intended? Until version 1.8.11 everything worked fine.You can use this playground link to see the typescript error by yourself: https://codesandbox.io/p/sandbox/blue-wildflower-42ltq6