Skip to content
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

Type 'HostElement' does not satisfy the constraint 'RendererElement' #6613

Closed
Ragura opened this issue Sep 6, 2022 · 3 comments
Closed

Type 'HostElement' does not satisfy the constraint 'RendererElement' #6613

Ragura opened this issue Sep 6, 2022 · 3 comments

Comments

@Ragura
Copy link

Ragura commented Sep 6, 2022

Vue version

3.2.36

Link to minimal reproduction

https://github.com/Ragura/vue3-pnpm-workspace

Steps to reproduce

Run pnpm i followed by pnpm build to see the type error pop up after trying to build the components project.

What is expected?

It should type check and build without the type error: Type 'HostElement' does not satisfy the constraint 'RendererElement'

This did not happen with Typescript 4.7, but it's doing it with 4.8. Therefore it's hard to see if it's a Vue error or a typescript bug, but I found no reports of this on their repo.

What is actually happening?

The error Type 'HostElement' does not satisfy the constraint 'RendererElement' appears during the typecheck/build step of the components project. Changing typescript version to 4.7 (instead of 4.8) removes the error and the build passes.

System Info

System:
    OS: macOS 12.4
    CPU: (10) arm64 Apple M1 Pro
    Memory: 91.81 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 17.0.1 - ~/.nvm/versions/node/v17.0.1/bin/node
    npm: 8.13.1 - ~/.nvm/versions/node/v17.0.1/bin/npm
  Browsers:
    Chrome: 104.0.5112.101
    Safari: 15.5

Any additional comments?

No response

@libbGit
Copy link

libbGit commented Sep 7, 2022

i encounter this Issue too, how to fix it?

@libbGit
Copy link

libbGit commented Sep 7, 2022

my @vue/runtime-core is v3.2.38

@LinusBorg
Copy link
Member

Duplicate of #6554 . Solution was meeged but hasnt been released yet.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants