4 ms·
I am currently on Vue 2, but would like to migrate to Vue 3 at some point. I am curious if anyone has as used the TypeScript class syntax with the decorators.
by hahamrfunnyguy 5y ago
I am currently on Vue 2, but would like to migrate to Vue 3 at some point.
I am curious if anyone has as used the TypeScript class syntax with the decorators. Last time I tried to migrate it, there were a bunch of things that failed. Presently it looks like one other dependency I need hasn't been migrated to Vue 3, either.
- 9dev 5y agoIn retrospect, I’m so happy I did not jump the class syntax bandwagon, that always felt a little suspicious. The best option seems to be migrating components to the (still supported) options API, which is arguably going to be harder if you have class style syntax you need to get rid of first…
- shrew 5y agoUnfortunately they pretty much dumped the class syntax early on in Vue 3's development, so you'll probably find it quite hard to transition to Vue 3 if you Vue 2 codebase is full on class components. I had a similar issue having adopted the class syntax and I think rewriting is probably the only way out.