-
-
Notifications
You must be signed in to change notification settings - Fork 34
Using Options from vue-class-component 8.0.0-rc.1 #86
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
@CurrentlyNoName if you switch import {Options, Vue} from "vue-class-component"; to import {Component, Vue} from "vue-facing-decorator"; and update the |
@CurrentlyNoName Out of curiosity, what version of Vue 3 broke vue-class-component for you? |
For us it's not Vue 3 breaking However, even if |
@jaredmcateer You don't need to use toNative if you have experimentalDecorators: true. We're using it in our codebase right now without toNative |
Ah okay that is not clear in the quickstart docs as it seems to state you must use both. Either way without supporting |
@jaredmcateer If you're able to come back and share which option you go with, that would be really interesting to know. I think it's unlikely that vue-facing-decorator will offer full support for the 8.0.0-rc version of vue-class-component since it's so different from earlier versions...but maybe there are some updates we could make to make the migration easier? |
We can't fully support vue-class-component because vue 3 is not fully compatible with vue 2 in some breaking changes. So in my opinion, we could make some alias of objects and functions and write a migration guide. |
@rdhelms we ultimately decided to stick with the RC packages of |
Hello,
quite some time ago, we started using vue-class-component with vue 3 and it was the version 8.0.0-rc.1 back then. Sadly it's not supported anymore and the vue-class-component is blocking the usage of never vue 3-versions. That's when I found this project and I wanted to ask if it's possible to use the "Options" from the "old" component (or if it's not, if it's possible to migrate.
The Source-Code looks like this
`
import {Options, Vue} from "vue-class-component";
@options({
components: {
SomeComponents
},
props: {
myString: {
type: String,
},
},
watch: {
show: function() {
// Do something
}
},
emits: ["emitSomething"],
})
export default class MyClassextends Vue {
}
`
It possible to migrate this to the vue-facing-decorator?
The text was updated successfully, but these errors were encountered: