xataio / client-ts

Xata.io SDK for TypeScript and JavaScript
https://xata.io/docs/sdk/typescript/overview
Apache License 2.0
123 stars 8 forks source link

deno.land module not found #745

Closed kostasb closed 2 years ago

kostasb commented 2 years ago

Describe the bug The deno.land url 'https://deno.land/x/xata/mod.ts' mentioned in the docs does not work, it returns an http 404 error.

deno run main.ts
Download ⠴ https://deno.land/x/xata/mod.ts                                                                                                                                                                                                            Warning Implicitly using latest version (@xata.io/client@0.20.0) for https://deno.land/x/xata/mod.ts
error: Module not found "https://deno.land/x/xata/mod.ts".
    at file:///Users/kostas/import/src/xata.ts:2:60

Workarounds

Meanwhile, users can use any other Deno compatible CDN like esm.sh: https://esm.sh/@xata.io/client?target=deno

SferaDev commented 2 years ago

I'm trying to get the mod.ts file to work, but doesn't locally nor re-exporting from another CDN.

I think it's probably better to update the docs pointing to: https://cdn.skypack.dev/@xata.io/client?dts