The contents of my package.json
file are as follows:
{
"name": "view",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@vue-leaflet/vue-leaflet": "^0.6.1",
"autoprefixer": "^10.3.1",
"core-js": "^3.6.5",
"gpxparser": "^3.0.8",
"leaflet": "^1.7.1",
"postcss": "^8.3.6",
"tailwindcss": "^2.2.7",
"typescript": "^4.3.5",
"vue": "^3.0.0",
"vue-router": "^4.0.0-0",
"vue3-openlayers": "^0.1.38",
"vuex": "^4.0.2"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^5.0.0-beta.3",
"@vue/cli-plugin-eslint": "^5.0.0-beta.3",
"@vue/cli-plugin-router": "^5.0.0-beta.3",
"@vue/cli-service": "^5.0.0-beta.3",
"@vue/compiler-sfc": "^3.0.0",
"@vue/eslint-config-prettier": "^6.0.0",
"babel-eslint": "^10.1.0",
"eslint": "^7.32.0",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-vue": "^7.0.0",
"prettier": "^2.2.1",
"sass": "^1.26.5",
"sass-loader": "^8.0.2"
}
}
I am looking to integrate TypeScript into this Vue 3 project, how can I achieve this?
Using yarn as my package manager, I attempted to install TypeScript with yarn add typescript
. Although it installed successfully, I'm unable to use TypeScript in my components.