Sun「無用」
Fresh defer load
So, I've been having some problems with fresh, but been working it out, kinda.
The problem now is fetching. I'm fetching from both the github api and the gitlab api, but I don't want the user to notice it that much, I'll just add a
Loading ...
message there.
The thing, how can I do it with fresh? In other frameworks, I could just return a promise and it would just defer for me, or the usage of some kind of a suspense would do that, but I haven't seen anything on the docs about defer load or returning a promise from the loader. Is there just no conventional way of doing it? Do I need to do it the "old" way (create an api endpoint, return the data, call fetch on an island and pray it works)?1 replies
Removing file extensions on import
Is there a deno.json configuration to make so that the file extensions are not needed when importing stuff?
Deno should have enough context when importing files (unless they have the same name), so it makes sense to me
12 replies
Prisma in deno
I've been having a weird problem with Prisma, when running 100% on deno. Prisma mostly assumes you have a
package.json
in your project and the biggest problem is that deno just doesn't use it.
When I try to run something like prisma generate
, it shows the Warning: [Prisma auto-install on generate] Prisma could not find a package.json file in the inferred project root Coding\JS\norslo. During the next step, when an auto-install of Prisma package(s) will be attempted, it will then be created by your package manager on the appropriate level if necessary.
, then just hangs forever (yes, I've waited for a while for it).
Is there any fixes for that integration or is it just not supported now?20 replies