https://pulumi.com logo
#typescript
Title
# typescript
w

wet-soccer-72485

10/31/2020, 4:59 AM
Is there a way to turn on throwing for this now?
Copy code
Calling [toString] on an [Output<T>] is not supported. To get the value of an Output<T> as an Output<string> consider either: 1: o.apply(v => `prefix${v}suffix`) 2: pulumi.interpolate `prefix${v}suffix` See <https://pulumi.io/help/outputs> for more details. This function may throw in a future version of @pulumi/pulumi.-file-run-pulumi-up an hour ago
I’ll explain: I some times accidentally have these show up, and instead of letting these sneak through, i’d love to fail fast. I wasted a couple hours when I accidentally wrote in these.
👍 1
g

gentle-diamond-70147

11/02/2020, 7:09 PM
I don't believe there is a way to make these throw. Can you open an issue for that at github.com/pulumi/pulumi ?
w

wet-soccer-72485

11/02/2020, 7:36 PM
b

broad-gold-44713

11/03/2020, 9:32 AM
@wet-soccer-72485 eslint, with @typescript-eslint plugin helps me catch these