Resolve the type mismatch in the the vite.config.ts in VSCode.
#3891
nilslindemann
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently (2026-07-19), VSCode gives a type error in a fresh Fresh project. In the
vite.config.ts, thefresh()call is underlined. After some back and forth, the Google AI suggested a solution that seems to work for now. Seemingly, the same things are different when they come from different sources (which seems to be an error to me, but what do I know); therefore:deno.json, replacejsr:@fresh/plugin-vite@^1.1.2withnpm:@jsr/fresh__plugin-vite@^1.1.2(so that that source matches the source for"vite").deno.lockfile and thenode_modulesfolder.deno install --reload.The type error should now be gone.
Beta Was this translation helpful? Give feedback.
All reactions