taiwannumberone
taiwannumberone
DDeno
Created by taiwannumberone on 11/13/2024 in #help
Does DENO_CERT append a certificate to the list of certs, or does it replace the list?
Does DENO_CERT append a certificate to the list of certs, or does it replace the list? I understand that DENO_TLS_CA_STORE specifies which cert store to use, but I'm not sure how DENO_CERT interacts with that.
1 replies
DDeno
Created by taiwannumberone on 10/10/2023 in #help
The requested module 'test/jsx-runtime' does not provide an export named 'jsxs'
hej, I have a exported function jsx() stored in jsx-runtime.ts. I also added these deno.json settings, so typescript would transpile jsx using my custom function without the need of importing it.
{
"imports": {
"test/jsx-runtime": "./jsx-runtime.ts"
},
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "test"
}
}
{
"imports": {
"test/jsx-runtime": "./jsx-runtime.ts"
},
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "test"
}
}
I used imports property so it would point to my file. The error I'm getting looks like this: error: Uncaught SyntaxError: The requested module 'test/jsx-runtime' does not provide an export named 'jsxs' And my question is: What exactly is jsxs or where I can find documentation on that? Typescript docs only mention either jsx() or jsxDEV() depending on your config
4 replies
DDeno
Created by taiwannumberone on 5/16/2023 in #help
jsx in deno
3 replies
DDeno
Created by taiwannumberone on 5/8/2023 in #help
Pathname prefix in serve()
Hi, I was wondering if it's possible to only handle requests coming from specific prefix within pathname like: localhost:8000/api I'm using std serve.
9 replies
DDeno
Created by taiwannumberone on 4/12/2023 in #help
Import modules from all files in directory
Considering I have multiple ts files in a folder and all of them export the same type module. Can I import them like this? import * as things from "./things/";
3 replies