#Can't upgrade typescript to 0.13.3 sdk

1 messages · Page 1 of 1 (latest)

torpid path
#

We are using the typescript sdk (not modules) and I attempted to upgrde to 0.13.3 and it doesn't work. Here is a minimal reproduce:

npm init -y

# Add typescript
npm install typescript ts-node --save-dev

# Init typescript project
npx tsc --init
npm install @dagger.io/dagger --save-dev

Create a build.mts

import { connect } from "@dagger.io/dagger"

Run:

 node --loader ts-node/esm build.mts                                                                                                                                                                          (node:120486) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`:
--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("ts-node/esm", pathToFileURL("./"));'
(Use `node --trace-warnings ...` to show where the warning was created)
(node:120486) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)

node:internal/modules/run_main:123
    triggerUncaughtException(
    ^
[Object: null prototype] {
  [Symbol(nodejs.util.inspect.custom)]: [Function: [nodejs.util.inspect.custom]]
}

Node.js v22.7.0
torpid path
#

This works fine for me when using 0.12.4

brave robin
#

cc @dim adder

brave robin
#

found the issue @torpid path will send a PR shortly

brave robin
#

It's already fixed in main, will be out in the next release 🙏