33 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I use esbuild to generate my bundles.
??why esbuild rather than deno build??
preact looks like a react alternatives. still the same questions of what to use around it
Deno build isn't as configurable. I believe they plan on deprecating it. The esbuild deno loader is used by the deno company and maintained by one of their employees.
https://deno.land/x/esbuild_deno_loader@0.6.0
Ultra is a good choice: https://ultrajs.dev
Ultra: The Quest for Zero-Legacy
Hypermodern Zero-Legacy Deno/React Framework
not much documentation, but lots of example files
1) Running many examples I get
I don't know what it means or what to do about it.
2)
client.tsx
and server.tsx
both point to the same App. Why is it in both places?Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Thank you.
1) What does the stuff about "hydrateRoot" mean?
2) Where/how do find the documentation?
3) If
App
is my root, how does it get shoot
?
4) Where do I put /** @jsx React.createElement */
-- I don't recognize the syntax
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Try running the
dev
command line with the --reload
option. It is best to ask questions like this in the, Ultra discord: https://discord.gg/XDC5WxGHb2thank you
3) what do I do to get in included? Does something like "build" handle that?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Deno build is crashing on me running on example code from Ultra, Aleph, etc. How do I use
esbuild_deno_loader
instead?Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
The Readme has an example script. Then you would just run that script with deno.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Thank you.
My error I tried to set the entry point my client entry point rather than leaving it as
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
my error (my mistake) seemingly was thinking I had to edit
entryPoints:
in the sample fileUnknown User•2y ago
Message Not Public
Sign In & Join Server To View
when i editted to my actual client side entry point, it then couldn't resolve the imports
import useAsset from "ultra/hooks/use-asset.js";
didn't work
anymore in `app.ts1Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
No. I just copied the file from the readme, names it alt-build.ts in the root directory
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
I could add that, and set the URL to the vendor directory (??)
I am not attached at all to ultra.
I am having problems with
deno build
and try to work around them.
Aleph gives me the same problem with deno build
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
deno build crashes for me. there is an open bug report about the problem (not made by me) that is about a month old
so I am looking for some way to write react programs in deno that doesn't rely on deno build
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
you are right
it is call
build.ts
which is using import { createBuilder } from "ultra/build.ts";
I get errors like this
sporadically during http fetch
when I use
deno run -A --no-check --watch ./server.tsx
and a build time whenever I use
deno run -A ./build.ts
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
For the build version
deno task build
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
presumably so since it i a ".h" file
Also occasionally (15% of the time) I client side errors from when I refresh my browser.
Thank you all for your help -- it is now solved
the binary I get with CURL (native m1) is different from the one I got with BREW (x86 mode)
and doesn't give the errors
---
hopefully it won't give me new and more interesting ones 🙂