-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Latest version of heroicons breaks build using Vue3 with vite #516
Comments
In my case, it seems to be a problem with
|
That fix did not work for me. This is my vscode error dialogue; the
|
I am getting the same thing. If I pin to 0.27.25 it works. But since Volar extension in VSCode uses the latest 0.27.30, there are errors whenever HeroIcons are used in a template. When pinning to 0.27.25 at least the build works. |
Ah, my error was from the volar vscode extension, which separately needs to be pinned to 0.27.25. Another I believe the root source is one of these two |
I might be wrong but this seems like a |
This seems to be fixed as of Volar 0.28.1 |
RenderFunction has the wrong signature, causing error TS2786: '...' cannot be used as a JSX component. Its return type 'VNodeChild' is not a valid JSX element. Type 'undefined' is not assignable to type 'Element | null'. as documented in tailwindlabs#516. This commit reverts 1658f7c.
Should be fixed by #549. |
Hey folks, sounds like this has been fixed (vuejs/language-tools#574), so I'm going to close this issue 👍 |
I'm using Vue3 with typescript, Vite, tailwind and heroicons to build an application.
Everything was working fine untill the latest version was released, I can't tell for sure which one it is but on my package.json
I have "@heroicons/vue": "^1.0.4",
When I try to build the application using "yarn build" i get the following error on every icon I'm using on the application
"error TS2786: '__VLS_XX' cannot be used as a JSX component."
If i rollback to version 1.0.0 everything goes back to normal
The text was updated successfully, but these errors were encountered: