Kojo.gg
Deno LSP + React + TypeScript + Vite (--node-modules-dir)
SOLVED! Thanks to @marvinh. https://discord.com/channels/684898665143206084/1285769268008583250/1286720005236330616
22 replies
Deno LSP + React + TypeScript + Vite (--node-modules-dir)
in fact all this was painfully useless
❌ Don't
deno run -A npm:create-vite-extra
✅ Do deno run -A npm:create-vite
Extra have deno.json, but with Deno now, especially with Existing templates out there and Deno2 RCs, it better have a package.json, then you install with deno install
and run your package.json task with deno run taskName
22 replies
Deno LSP + React + TypeScript + Vite (--node-modules-dir)
I've managed to solve quite a bit of errors. Don't know if its the right way tho.
deno.json
I've added
But TypeScript don't give me Type inferrance this way
App.tsx
error/lint to: Parameter 'count' implicitly has an 'any' type.deno-ts(7006)
Because
count
is not inferred, the only way I managed to solve this is by annotating the type
22 replies
@deno/emit's transpile with JSR
I really don’t know how to do it with hono. My index.html is loaded from
/
from static, then it ask for client.js, and this is why I tried to use the @deno/emit’s transpile call.
Even better can I just strip the ts stuff without types check14 replies