rabbit_rabbit
rabbit_rabbit
DDeno
Created by rabbit_rabbit on 10/10/2024 in #help
deno check failing for @headlessui/react
5 replies
DDeno
Created by rabbit_rabbit on 10/10/2024 in #help
deno check failing for @headlessui/react
Will do, thank @marvinh. !
5 replies
DDeno
Created by rabbit_rabbit on 12/29/2023 in #help
@headlessui/react + Fresh
Thanks @marvinh. Just filed an issue — enjoy your vacation! https://github.com/denoland/fresh/issues/2206
4 replies
DDeno
Created by rabbit_rabbit on 12/13/2023 in #help
InvalidData: No certificates found in cert file
@xaio that worked, thank you! I had put the port outside the server object, so that was what was not working.
9 replies
DDeno
Created by rabbit_rabbit on 12/13/2023 in #help
InvalidData: No certificates found in cert file
Enjoy your holiday!
9 replies
DDeno
Created by rabbit_rabbit on 12/13/2023 in #help
InvalidData: No certificates found in cert file
@xaio thanks very much for this info! I tried again with that and am still struggling. I pushed a minimal repro based off the sample project where I'd expect this to serve HTTPS and it's still not. Any ideas? cc @marvinh. who had some context on the other posted issue https://github.com/will-weiss/deno-fresh-certs-repro
Watcher File change detected! Restarting!
config {
plugins: [
{
name: "tailwind",
configResolved: [AsyncFunction: configResolved],
middlewares: [],
buildStart: [AsyncFunction: buildStart]
}
],
server: {
cert: "-----BEGIN CERTIFICATE-----\n" +
"MIIDyzCCArOgAwIBAgIJAMaX7qDdOwAuMA0GCSqGSIb3DQEBCwUAMIGeMQswCQYD\n" +
"VQQGEwJ"... 1275 more characters,
key: "-----BEGIN PRIVATE KEY-----\n" +
"MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQCThucD3xBEj1CW\n" +
"prufDoA"... 1608 more characters
}
}

🍋 Fresh ready
Local: http://localhost:8000/
Watcher File change detected! Restarting!
config {
plugins: [
{
name: "tailwind",
configResolved: [AsyncFunction: configResolved],
middlewares: [],
buildStart: [AsyncFunction: buildStart]
}
],
server: {
cert: "-----BEGIN CERTIFICATE-----\n" +
"MIIDyzCCArOgAwIBAgIJAMaX7qDdOwAuMA0GCSqGSIb3DQEBCwUAMIGeMQswCQYD\n" +
"VQQGEwJ"... 1275 more characters,
key: "-----BEGIN PRIVATE KEY-----\n" +
"MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQCThucD3xBEj1CW\n" +
"prufDoA"... 1608 more characters
}
}

🍋 Fresh ready
Local: http://localhost:8000/
9 replies
DDeno
Created by pihentagy on 12/12/2023 in #help
Google Calendar
@cdoremus here you are!
8 replies
DDeno
Created by pihentagy on 12/12/2023 in #help
Google Calendar
Hi @pihentagy — I ended up getting this working by hand rolling my own GoogleClient that makes fetch requests. Wading through all the docs was challenging! Perhaps the library you referenced works, but I haven't tested it. If the credentials.json object includes your access_token & refresh_token, this should work as it's working for me.
8 replies
DDeno
Created by rabbit_rabbit on 12/8/2023 in #help
Fresh migrating from serveTls
Thanks @marvinh. ! I tried that and it's still serving HTTP. For a cleaner test to ensure it's not an issue with environment variables I cleared some of the other stuff, so here's my attempt
/// <reference no-default-lib="true" />
/// <reference lib="dom" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
/// <reference lib="deno.ns" />

import { start } from '$fresh/server.ts'
import manifest from './fresh.gen.ts'
import config from './fresh.config.ts'

config.server = {
...config.server,
cert: './local-certs/localhost.crt',
key: './local-certs/localhost.key',
}

await start(manifest, config)
/// <reference no-default-lib="true" />
/// <reference lib="dom" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
/// <reference lib="deno.ns" />

import { start } from '$fresh/server.ts'
import manifest from './fresh.gen.ts'
import config from './fresh.config.ts'

config.server = {
...config.server,
cert: './local-certs/localhost.crt',
key: './local-certs/localhost.key',
}

await start(manifest, config)
where I see
$ deno task start
Task start deno task run:trusted --watch=chatbot/,db/,islands/,scheduling/,util/,components/,external-clients/,routes/,static/ dev.ts
Task run:trusted DENO_TLS_CA_STORE=system deno run -A --unsafely-ignore-certificate-errors "--watch=chatbot/,db/,islands/,scheduling/,util/,components/,external-clients/,routes/,static/" "dev.ts"
Watcher Process started.
DANGER: TLS certificate validation is disabled for all hostnames
The manifest has been generated for 41 routes and 22 islands.

🍋 Fresh ready
Local: http://localhost:8000/
$ deno task start
Task start deno task run:trusted --watch=chatbot/,db/,islands/,scheduling/,util/,components/,external-clients/,routes/,static/ dev.ts
Task run:trusted DENO_TLS_CA_STORE=system deno run -A --unsafely-ignore-certificate-errors "--watch=chatbot/,db/,islands/,scheduling/,util/,components/,external-clients/,routes/,static/" "dev.ts"
Watcher Process started.
DANGER: TLS certificate validation is disabled for all hostnames
The manifest has been generated for 41 routes and 22 islands.

🍋 Fresh ready
Local: http://localhost:8000/
5 replies
DDeno
Created by rabbit_rabbit on 12/7/2023 in #help
positional arguments deno task
Makes sense — I'll have it call out to a shell script. Thanks!
3 replies
DDeno
Created by rabbit_rabbit on 11/27/2023 in #help
peer tailwind support in fresh
Righteous! Yeah this isn’t a blocker, so I’ll stay tuned for the next release
4 replies
DDeno
Created by rabbit_rabbit on 10/10/2023 in #help
compiled artifact can't find deno.json
Following up on the above, my deno.json file looks like this
{
"tasks": {
"compile": "DENO_TLS_CA_STORE=system deno compile -A --unsafely-ignore-certificate-errors --unstable --target x86_64-unknown-linux-gnu"
},
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "preact"
},
"importMap": "./import_map.json"
}
{
"tasks": {
"compile": "DENO_TLS_CA_STORE=system deno compile -A --unsafely-ignore-certificate-errors --unstable --target x86_64-unknown-linux-gnu"
},
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "preact"
},
"importMap": "./import_map.json"
}
I don't think this is at issue because for whatever reason it's not able to find the deno.json file despite the file being there in the folder in which the binary is being run.
5 replies
DDeno
Created by rabbit_rabbit on 9/27/2023 in #help
assertEquals deprecated in vscode?
Thanks so much!
14 replies
DDeno
Created by rabbit_rabbit on 9/27/2023 in #help
assertEquals deprecated in vscode?
Okay, that fixed it! I was on 1.36.4 until just now
14 replies
DDeno
Created by rabbit_rabbit on 9/27/2023 in #help
assertEquals deprecated in vscode?
Trying that now...
14 replies
DDeno
Created by rabbit_rabbit on 9/27/2023 in #help
assertEquals deprecated in vscode?
Thanks for your input all, strange indeed! I'll note that running at the command line seems just fine, so the problem may be with the vs code extension?
14 replies
DDeno
Created by rabbit_rabbit on 9/27/2023 in #help
assertEquals deprecated in vscode?
Might you have any idea what's going on there?
14 replies
DDeno
Created by rabbit_rabbit on 9/27/2023 in #help
assertEquals deprecated in vscode?
No description
14 replies
DDeno
Created by rabbit_rabbit on 9/27/2023 in #help
assertEquals deprecated in vscode?
Ah I see, like so
import { assertEquals } from 'std/assert/assert_equals.ts'
import { assertEquals } from 'std/assert/assert_equals.ts'
with my import_map.json like so
{
"imports": {
"std/": "https://deno.land/std@0.202.0/",
}
}
{
"imports": {
"std/": "https://deno.land/std@0.202.0/",
}
}
Thanks!
14 replies