few-yacht-11623
07/21/2022, 1:56 PMnpm install
to update it. It fixed up a conflict with ts-node
, but now when I run pulumi to preview one of my stacks I get:
error: Running program '/Users/mbusby/dev/kojo-web-infra' failed with an unhandled exception:
TSError: ⨯ Unable to compile TypeScript:
stacks/dev/busby/index.ts(3,36): error TS2554: Expected 1 arguments, but got 2.
The line in question is creating a custom component:
import { DevEBEnv } from '../../../components/DevEBEnv';
new DevEBEnv('kojo-web-dev-busby', { ... }); // <-- this line errors
which is defined like:
export class DevEBEnv extends pulumi.ComponentResource {
constructor(name: `kojo-${string}-dev-${string}`, opts: DevEBEnvOptions) {
I can’t see why this would be erroring. So I think somehow this change in installed ts-node
version is breaking the compilation, not sure why, anyone have ideas on how to debug this?node_modules/ts-node
got bumped from 7.0.1
to 10.9.1
. Manually doing npm install ts-node@7.0.1
resolved the issue