Industrial
Explore posts from serversUsing WASM in Solid(Start)
Hi. I have a SolidStart app that I'm running with Bun and what I want to do is embed WASM code into my solid app.
https://github.com/Industrial/skeleton-nodejs/blob/main/applications/solid-app/src/test.ts
This is an example of loading the WASM code (Haskell) and running a function. When I try to add that code to the https://github.com/Industrial/skeleton-nodejs/blob/main/applications/solid-app/src/app.tsx then I get the error:
10 replies
VSCode Test Debugging
This doesn't work unless I add:
When I run without, I see that a process starts but it does nothing. How do I run all tests with a debugger? I just want to set a breakpoint and press run. I don't want to have to edit the config to test 1 specific file.
3 replies
Error running Apollo example (on latest version)
Hi.
When I run this example with the latest version of apollo from npm I get errors:
https://deno.land/[email protected]/node/how_to_with_npm/apollo
I tried removing the version to get the latest version and it pulled 4.9.3
which gave this error:
3 replies
Error running program that uses `fp-ts` from npm (`Is a directory (os error 21)`)
https://github.com/Industrial/test-fp-ls/blob/main/mod.ts
When I run
deno run -A mod.ts
I get:
Is my import_map.json
wrong? https://github.com/Industrial/test-fp-ls/blob/main/import_map.json4 replies
File Permissions on Deno.FileInfo
Hello. As a programming exercise I'm trying to convert a Decimal number into Octal and that Octal representation into a Unix File Permission representation (drwx-).
* I have a directory with the number
16877
-> 40755
* I have a file with the number 33188
-> 100644
Questions:
* Why does the first Octal number have 5 digits and the second one 6?
* I understand the meaning of the last 3 digits, but I don't understand the meaning of the 40
and the 100
. Should I interpret the number from right to left?
According to ChatGPT:
The leftmost digit represents the file type. It can have various values depending on the file type, such as:
0: Regular file
1: FIFO (named pipe)
2: Directory
3: Symbolic link
4: Socket
5: Block device
6: Character device
If that's true why is my directory giving me a mode of 4
i.e. Socket and not 2
(Directory)?5 replies
Cannot read properties of undefined (reading 'createTRPCReact')
I'm trying to use it in an Astro project.
https://github.com/Industrial/test-astro-solid/blob/main/src/lib/trpc.ts
I think I implemented it as per the example https://trpc.io/docs/react#2-create-trpc-hooks
9 replies
Simple test, lots of type errors
Hi!
I made a library for Deno (https://github.com/Industrial/fresh-emotion) and am now trying to add tests.
When I run this test: https://github.com/Industrial/fresh-emotion/blob/main/mod.test.ts
I get this output:
And many more errors like it. How do I solve this? Is this due to Fresh / Preact ?
1 replies
How do I patch a std api?
Hello.
This person posted in this command that they "patched" the
vm.isContext
function to return false in order to get the node:jsdom
library to work: https://github.com/denoland/fresh/issues/427#issuecomment-1251918545
I am wondering how they did that.
I tried this:
But this throws the error:
7 replies