cbhscarter
cbhscarter8h ago

Auto type generation with ReactRouter + Vite + Deno

I'm attempting to get ReactRouter working with Vite + Deno. My application runs fine, but I'm running into static type issues in the IDE. (first image) My main files are .tsx files, but for some reason the type generation is generating the path via .js instead. (second image). I believe what is happening is that perhaps the vite dev system is properly handling the references and the application works fine, but its not physically generating out a file that Deno can understand such that the IDE is not giving proper type support for the generated files. I'm thinking this is a Deno issue due to it actually working when running the app, but I'm somewhat unsure on where the issue could be or how to fix it. I've included the types in my deno.json file. (third image)
No description
No description
No description
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?