Closed RensBoeser closed 4 years ago
Describe the bug The router.d.ts gives an error using typescript 3.9.6+: Property 'component' does not exist on type 'RouteConfig'. ts(2339)
Property 'component' does not exist on type 'RouteConfig'. ts(2339)
Expected behavior No Typescript errors
Screenshots
Additional context My npm packages:
"dependencies": { "@nuxt/typescript-runtime": "^0.4.10", "@nuxtjs/pwa": "^3.0.0-0", "@nuxtjs/separate-env": "0.0.1", "lodash-es": "^4.17.15", "nuxt": "^2.13.3", "nuxt-i18n": "^6.13.1", "nuxt-material-design-icons": "^1.0.4", "typescript": "^3.9.6", "vue-property-decorator": "^8.5.1", "vuex": "^3.5.1", "vuex-module-decorators": "^0.16.1", "vuex-persist": "^2.2.0" }, "devDependencies": { "@nuxt/types": "^0.6.4", "@nuxt/typescript-build": "^0.6.7", "@nuxtjs/eslint-module": "^2.0.0", "@nuxtjs/vuetify": "^1.11.2", "@types/chai": "^4.2.11", "@types/lodash-es": "^4.17.3", "@types/mocha": "^5.2.7", "@typescript-eslint/eslint-plugin": "^2.34.0", "@typescript-eslint/eslint-plugin-tslint": "^2.34.0", "@typescript-eslint/parser": "^2.34.0", "eslint": "^6.1.0", "eslint-plugin-nuxt": "^0.5.2", "fork-ts-checker-webpack-plugin": "^4.1.6", "tsconfig-paths-webpack-plugin": "^3.2.0", "tslint": "^6.1.2" }
@RensBoeser It has been fixed in @nuxt/types@0.7.8.
@nuxt/types@0.7.8
I also advice you to upgrade to latest @nuxt/types which now follows Nuxt version since 2.13.0, last version available is then 2.13.3 for types.
@nuxt/types
https://www.npmjs.com/package/@nuxt/types
Describe the bug The router.d.ts gives an error using typescript 3.9.6+:
Property 'component' does not exist on type 'RouteConfig'. ts(2339)
Expected behavior No Typescript errors
Screenshots
Additional context My npm packages: