You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So it seems it's an issue with Plugin: vite:preact-jsx.
Tried to debug it and I think the culprit is the version of @babel/core being used. According to this PR the const modifier in type parametersis available since version 7.21.0, but I'm not really sure that upgrading the version will solve the issue.
I really hope that I was clear enough with my explanation. Please let me know if you need more info. Thanks!
The text was updated successfully, but these errors were encountered:
I have similar issue. Would like to use new keyword using from TS 5.2.0 but it is not possible (probably) due preset-vite plugin. Im getting this error:
Support for the experimental syntax 'explicitResourceManagement' isn't currently enabled
It would be really awesome to have updated dependencies in this great plugin.
Hi! I'm getting an error when running
vite dev
in a project with Preact + Vite + Typescript.This issue happens when trying to use the new "Const type parameters" functionality available since Typescript 5.
Steps to reproduce:
Create a component with Preact + Vite + Typescript >5 + Preact plugin (from preset-vite).
Copy the following function:
Issue
The code works and is accepted by TS compiler, but no by Vite.
The error in the console is the following:
So it seems it's an issue with
Plugin: vite:preact-jsx
.Tried to debug it and I think the culprit is the version of @babel/core being used. According to this PR the
const modifier in type parameters
is available since version 7.21.0, but I'm not really sure that upgrading the version will solve the issue.I really hope that I was clear enough with my explanation. Please let me know if you need more info. Thanks!
The text was updated successfully, but these errors were encountered: