HudsyWudsy
Adding libraries/modules?
Question
I mean this in the most earnest, sincere, and curious way: should I be able to build a client side (Vite/React/TypeScript) and a server side (Hono) all with Deno and absolutely no Bun or npm? I think my learning curve-issue is that I'm not entirely sure how to add everything I need and want.
I'm willing to take the time to learn but right out of the gate it's so different from npm or bun (or at least it currently feels like it is) that it feels more time consuming.
1 replies
Errors in boilerplate code?
After running
deno run --allow-read --allow-write --allow-env npm:create-vite-extra@latest
I see the following errors. (It's important to note that on another computer, there are no errors whatsoever.)
Why might I be getting these errors?
1. Question: vite.config.ts error
By default, I get the following error from my vite.config.ts
file. Is there a missing step upon installation that needs to be run?
2. Question: JSX error
Also by default, I get the JSX error of:
'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.ts(2686)
. I understand that adding the import React from "react"
statement would fix this, but I also know we don't need that statement in React anymore.
(My apologies if these have already been answered--I just haven't been able to find related anwers.)3 replies