#Dagger TypeScript SDK

1 messages · Page 1 of 1 (latest)

elfin oak
#

I'm trying to get started with Dagger following this tutorial:

Unfortunately I am hitting this error when using TypeScript:

Module '"/Users/morgante/code/grit/rewriter/ops/dagger/node_modules/@dagger.io/dagger/dist/index"' has no default export.

1 import Client, { connect } from '@dagger.io/dagger';
         ~~~~~~
sick fern
sick fern
#

Here is an example of a build script compatible with the latest version of the SDK.

elfin oak
#

Thanks! FYI the script I tried was straight from the quickstart.

sick fern
#

But the docs are not updated yet to comply with the latest version. Thanks for the heads up!

sick fern
#

Code snippets have been updated in the docs, thanks for bringing it up! 🙏

mighty lintel
#

@sick fern @mint barn @radiant socket maybe worth double-checking if other parts of the docs are broken by this special “break all the things” release

radiant socket
#

The docs were updated but sometimes publishing doesn’t invalidate some caches. I don’t know if it’s systemic.