rapid-eye-32575
07/16/2019, 12:39 PMCustomResource
-objects are broken for me with the current release (I'm using v0.17.22
). I always get the following error:
TypeError: opts.parent.__aliases is not iterable
at new Resource ([...]/node_modules/@pulumi/pulumi/resource.js:117:51)
at new CustomResource ([...]/node_modules/@pulumi/pulumi/resource.js:270:9)
at new Resource ([...]/node_modules/@pulumi/pulumi/dynamic/index.js:40:9)
at new DatabaseUser ([...]/src/database/database-user.ts:7:9)
at [...]/src/database/gcp/gcp-database-cluster.ts:64:13
The instance of GCPDatabaseCluster
(which has no aliases) is the parent of a DatabaseUser
(again without aliases). Maybe this has something to do with the new feature of renaming resources (https://github.com/pulumi/pulumi/pull/2774)? Has anyone seen a similar behavior? The code still worked last week ago 🤔white-balloon-205
@pulumi/Pulumi
in your program, and the parent resource was using the older version while the child was using the newer. If you can update your versions to be consistent, I believe that would allow you to workaround this in the meantime.rapid-eye-32575
07/16/2019, 2:06 PMwhite-balloon-205
rapid-eye-32575
07/16/2019, 2:15 PMrapid-eye-32575
07/16/2019, 2:51 PMnode_modules
-directories and running yarn
again. Fixing the version inconsistencies in the package.json
files and running yarn
alone did not help 🤷rapid-eye-32575
07/16/2019, 2:59 PMwhite-balloon-205
rapid-eye-32575
07/17/2019, 8:02 AM