Skip to content

Getting JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists. #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bdruth opened this issue Apr 1, 2023 · 0 comments

Comments

@bdruth
Copy link

bdruth commented Apr 1, 2023

Installed extension, followed directions on global install of components using latest versions, but didn't get any auto completion for TS or markup (see other issues) - installing @volar/[email protected] fixed auto completion, but opening the default App.vue after creating a new project, yields this error on the <img> elements. e.g.:

<img src="/vite.svg" class="logo" alt="Vite logo" />

JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.

  "dependencies": {
    "@vue/runtime-dom": "^3.2.47",
    "vue": "^3.2.47"
  },
  "devDependencies": {
    "@vitejs/plugin-vue": "^4.1.0",
    "typescript": "^4.9.3",
    "vite": "^4.2.0",
    "vue-tsc": "^1.2.0"
  }
❯ npm list -g
/Users/bdruth/.nvm/versions/node/v18.15.0/lib
├── @volar/[email protected]
├── [email protected]
├── [email protected]
└── [email protected]

Any way to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant