krml
Deno add from different sources (like JSR) doesn't works?
Its a bug, check: https://discord.com/channels/684898665143206084/684898665151594506/1296145432812191795
5 replies
Deno add from different sources (like JSR) doesn't works?
I'm seeing the error as well. You have it in the https://docs.deno.com/runtime/tutorials/how_to_with_npm/react/ tutorial right?
5 replies
As a JS beginner, should I learn Node.js first or go straight to Deno 2?
As Erdem mentioned: It should not matter. The language should be the same. As you're starting out chose whatever interests you more. There should be more examples out there that are written for Node. However those example should be easily "translated" for Deno as well.
One question: What would you like to build or do you plan on following tutorials / examples first? ☺️
10 replies
Fresh project next to regular Deno project
To whoever will find this. The solution is setting
// <reference lib="deno.unstable" />
in the main.ts
file of Fresh. The reason for that is, that Fresh sets /// <reference no-default-lib="true" />
which seems to remove the Deno
global (https://github.com/denoland/deno/issues/20420). This comment helped me a lot: https://github.com/denoland/deno/issues/20248#issuecomment-16898813745 replies
How do I import the stripe SDK into my fresh.js project
You might have a look at the
saaskit
project. We use stripe as a payment provider there. It is imported in the deno.json
via a npm import: https://github.com/denoland/saaskit/blob/main/deno.json
How it is then implemented you can find here: https://github.com/denoland/saaskit/blob/main/utils/stripe.ts4 replies