Has anyone had any problems with `LocalWorkspace.r...
# typescript
a
Has anyone had any problems with
LocalWorkspace.removeStack
? The typescript compiler thinks
Property 'removeStack' does not exist on type 'typeof LocalWorkspace'.ts(2339)
and when I run my automation I’m hitting the runtime error
TypeError: automation_1.LocalWorkspace.removeStack is not a function
I’m importing like
import { LocalWorkspace } from '@pulumi/pulumi/automation';
tsconfig
Copy code
{
  "compilerOptions": {
    "strict": true,
    "outDir": "bin",
    "target": "es2016",
    "module": "commonjs",
    "moduleResolution": "node",
    "sourceMap": true,
    "experimentalDecorators": true,
    "pretty": true,
    "noFallthroughCasesInSwitch": true,
    "noImplicitReturns": true,
    "forceConsistentCasingInFileNames": true
  },
  "include": [
    "**/*.ts"
  ],
  "exclude": [
    "node_modules"
  ]
}
If I right click and “Go To TypeDefinitiion” I can see the method
removeStack
oh typescript is happy if I go:
Copy code
await stack.workspace.removeStack