Skip to content

Default event attributes not correctly type checked since extension version 3.0.0 #5480

Open
@bvanderhorn

Description

@bvanderhorn

Vue - Official extension or vue-tsc version

3.0.0

VSCode version

1.101

Vue version

3

TypeScript version

5.6.2

System Info

linux mint 2022-04

package.json dependencies

"dependencies": { "@apidevtools/json-schema-ref-parser": "^11.7.0", "@geoapify/geocoder-autocomplete": "^2.0.3", "@headlessui/vue": "^1.7.22", "@jsonforms/core": "^3.4.0", "@jsonforms/vue": "^3.4.0", "@jsonforms/vue-vanilla": "^3.4.0", "@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0", "@ory/client": "^1.15.12", "@shipitsmarter/viya-ui-warehouse": "npm:@ShipitSmarter/viya-ui-warehouse@1.35.0", "@tanstack/vue-table": "^8.20.5", "@types/jsonpath": "^0.2.4", "@types/lodash": "^4.17.7", "@typescript-eslint/parser": "^8.15.0", "@vuelidate/core": "^2.0.3", "@vuelidate/validators": "^2.0.4", "@vuepic/vue-datepicker": "^9.0.2", "@vueuse/core": "^11.3.0", "ajv-errors": "^3.0.0", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", "core-js": "^3.38.1", "country-flag-icons": "^1.5.18", "crypto-js": "^4.1.1", "csv-parse": "^5.6.0", "d3": "^7.9.0", "date-fns": "^4.1.0", "destr": "^2.0.3", "eslint-plugin-import": "^2.31.0", "eslint-vue-setup-rules": "^1.0.9", "file-saver": "^2.0.5", "jsonpath": "^1.1.1", "jsonpath-plus": "^10.2.0", "leaflet": "^1.9.4", "lodash": "^4.17.21", "lucide-vue-next": "^0.460.0", "marked": "^14.1.2", "mixpanel-browser": "^2.58.0", "openapi-fetch": "0.13.0", "pinia": "^2.2.6", "pinia-plugin-persistedstate": "4.1.3", "posthog-js": "^1.203.1", "pretty-print-json": "^3.0.2", "radix-vue": "^1.9.10", "raw-loader": "^4.0.2", "tailwind-merge": "^2.5.2", "tailwindcss-animate": "^1.0.7", "vue": "^3.5.13", "vue-router": "^4.4.5", "vue-sonner": "^1.3.0", "vue3-easy-data-table": "^1.5.47", "vue3-popper": "^1.5.0", "vue3-toastify": "^0.2.2", "vuedraggable": "^4.1.0" }, "devDependencies": { "@commitlint/cli": "^19.8.0", "@commitlint/config-conventional": "^19.8.0", "@eslint/eslintrc": "^3.2.0", "@pinia/testing": "^0.1.5", "@rollup/plugin-node-resolve": "^15.2.3", "@rushstack/eslint-patch": "^1.10.3", "@tsconfig/node-lts": "^20.1.3", "@types/crypto-js": "^4.2.1", "@types/d3": "^7.4.3", "@types/file-saver": "^2.0.7", "@types/geojson": "^7946.0.13", "@types/jsdom": "^21.1.7", "@types/leaflet": "^1.9.17", "@types/lodash.debounce": "^4.0.9", "@types/markdown-it-link-attributes": "^3.0.5", "@types/mixpanel-browser": "^2.51.0", "@types/node": "^22.9.1", "@typescript-eslint/eslint-plugin": "^8.15.0", "@vitejs/plugin-legacy": "^5.4.2", "@vitejs/plugin-vue": "^5.2.0", "@vitest/coverage-v8": "^2.1.9", "@vitest/ui": "^2.1.9", "@vue/compiler-sfc": "^3.4.38", "@vue/eslint-config-prettier": "^10.1.0", "@vue/test-utils": "^2.4.6", "@vue/tsconfig": "^0.6.0", "autoprefixer": "^10.4.20", "dotenv": "^16.4.5", "eslint": "^9.24.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-no-relative-import-paths": "^1.6.1", "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-simple-import-sort": "^12.1.1", "eslint-plugin-unused-imports": "^4.1.4", "eslint-plugin-vue": "^9.27.0", "husky": "^9.1.7", "jsdom": "^25.0.1", "lint-staged": "^15.5.0", "markdown-it-link-attributes": "^4.0.1", "openapi-typescript": "^7.3.0", "postcss": "^8.4.41", "postcss-import": "^16.1.0", "prettier": "^3.3.3", "prettier-plugin-tailwindcss": "^0.6.9", "sass": "^1.81.0", "shiki": "^1.23.1", "tailwindcss": "^3.4.15", "terser": "^5.33.0", "typescript": "^5.6.2", "typescript-eslint": "^8.15.0", "unplugin-auto-import": "^0.18.5", "unplugin-vue-components": "^0.27.4", "unplugin-vue-markdown": "^0.26.2", "vite": "^5.4.15", "vite-bundle-analyzer": "^0.13.1", "vite-plugin-node-polyfills": "^0.22.0", "vite-plugin-vue-devtools": "^7.4.5", "vitest": "^2.1.9", "vue-eslint-parser": "^9.4.3", "vue-tsc": "^2.1.0" }, "lint-staged": { "src/**/*.{ts,vue,js}": [ "eslint --fix", "prettier --write" ] }

Steps to reproduce

Write any vue component using @click prop

What is expected?

No type error

What is actually happening?

Type error: onClick does not exist in type (...)

Image

Link to minimal reproduction

No response

Any additional comments?

Reverting extension back to version 2.2.10 solved it for me

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions