@here Got this error when I added some code to dep...
# typescript
r
@here Got this error when I added some code to deploy EC2 instances in my stack. Not the greatest TypeScript person so any help would be great 😞
Copy code
Diagnostics:
  pulumi:pulumi:Stack (aws-xxx-local-abdul):
    The Pulumi runtime detected that 97 promises were still active
    at the time that the process exited. There are a few ways that this can occur:
      * Not using `await` or `.then` on a Promise returned from a Pulumi API
      * Introducing a cyclic dependency between two Pulumi Resources
      * A bug in the Pulumi Runtime
    Leaving promises active is probably not what you want. If you are unsure about
    why you are seeing this message, re-run your program with the `PULUMI_DEBUG_PROMISE_LEAKS`
    environment variable. The Pulumi runtime will then print out additional
    debug information about the leaked promises.
I reverted all the changes but the error still persists. Any idea how to "reset"? The code I used was also commented saying it resolved promises lol ¯¯\_( ͡° ͜ʖ ͡°)_/¯
b
could you share your code?
h
I ran into this with the automation API and
npm ci
(reinstall everything) fixed the problem ...