-
Notifications
You must be signed in to change notification settings - Fork 433
Setting components in Component decorator causes Typescript 2.4 error #123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I also get this kind of error when using the vuedraggable plugin, but not when using my own components. I think this might have something to do with the author's packages rather than with Vue Class Component. |
Side components should add |
Could you provide a minimal reproducible project by github repo? |
Minimal project repo: https://github.com/qdot/vue-component-test-case Travis result from build: https://travis-ci.org/qdot/vue-component-test-case/builds/253062538 |
@qdot Thank you for the reproduction. This seems to be fixed if you update declare module "*.vue" {
import Vue from 'vue';
export default Vue;
} I remember it had worked with I already make a PR to fix the example in this repo via #126 |
This made it work for me, thanks so much for the help and the library! :) |
Needed to remove a typeof to make typescript 2.4 work with vue decorators. See vuejs/vue-class-component#123 (comment)
Needed to remove a typeof to make typescript 2.4 work with vue decorators. See vuejs/vue-class-component#123 (comment)
Would you please to show some example? |
Uh oh!
There was an error while loading. Please reload this page.
The following code worked in Typescript 2.3
Using Typescript 2.4, I get the following error:
The text was updated successfully, but these errors were encountered: