Skip to content

How to convert Roma PrimeVue to TS #83

Discussion options

You must be logged in to vote

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;

  1. Add config files to root folder.
  • tsconfig.json
  • tsconfig.node.json

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.

  1. The package.json file should include typescript and vue-tsc as a dev dependency;
"devDependencies": {
    "@vitejs/plugin-vue": "^4.2.3",
    "typescript": "^5.0.2",
    "vite": "^4.4.8",
    "vue-tsc": "^1.8.8"
  }
  1. Rename main.js to main.ts

  2. In App.vue, add lang="ts" to the script element.

  3. Layout folder is the on…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@premdasvm
Comment options

Answer selected by sezisfurkan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants