ancient-monkey-64322
08/13/2021, 12:09 PMLocalWorkspace.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
import { LocalWorkspace } from '@pulumi/pulumi/automation';
{
"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"
]
}
removeStack
await stack.workspace.removeStack