Skip to content

Apollo.primevue v4.4 - TypeScript migration #183

Discussion options

You must be logged in to vote

Thank you for your purchase, Apollo is a vite project in JS, the TS version has the following format;

https://vite.new/vanilla-ts

  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"
  }

3.Rename main.js to main.ts

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

5.Layout folder is the only necessa…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

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