How to convert Roma
PrimeVue to TS
#83
-
Hi, I just purchased the Roma PrimeVue template, and i see that it's using |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Thank you for your purchase, Roma is a vite project in JS, the TS version has the following format; So you need;
I'd suggest turning linting part to false during migration of layout code to TS. Once it runs with TS, you can turn it on for further improvements. at root folder.
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.3",
"typescript": "^5.0.2",
"vite": "^4.4.8",
"vue-tsc": "^1.8.8"
}
changeTopbarColor(event, topbarColor, logo) {
this.$emit('topbar-color-change', topbarColor, logo);
event.preventDefault();
}, changeTopbarColor(event:MouseEvent, topbarColor: string, logo: string) {
this.$emit('topbar-color-change', topbarColor, logo);
event.preventDefault();
}, If you have any questions during migration, please get in touch with us. |
Beta Was this translation helpful? Give feedback.
-
Corrected -> https://vite.new/vanilla-ts |
Beta Was this translation helpful? Give feedback.
Thank you for your purchase, Roma is a vite project in JS, the TS version has the following format;
https://vite.new/vanilla-ts
So you need;
I'd suggest turning linting part to false during migration of layout code to TS. Once it runs with TS, you can turn it on for further improvements.
at root folder.
Rename main.js to main.ts
In App.vue, add lang="ts" to the script element.
Layout folder is the on…