wonderful-dog-9045
05/12/2020, 4:14 PMError: The root stack resource was referenced before it was initialized.
at Object.registerStackTransformation (/home/gsuess/empirica/meteor-deploy/node_modules/@pulumi/pulumi/runtime/stack.js:211:15)
What am I doing wrong?faint-table-42725
05/12/2020, 4:48 PM@pulumi/pulumi
will initialize the pulumi runtime. Part of that is establishing the necessary setup for things like stack transformations.wonderful-dog-9045
05/12/2020, 4:50 PMregisterStackTransformation
because I imported runtime
from @pulumi/pulumi
.swift-lunch-74411
05/12/2020, 5:13 PMfaint-table-42725
05/12/2020, 5:32 PMimport * as pulumi from @pulumi/pulumi
?wonderful-dog-9045
05/12/2020, 6:03 PMthrow new Error("init abort");
here https://github.com/pulumi/pulumi/blob/master/sdk/nodejs/runtime/stack.ts#L71. Looks like I can do a whole pulumi up
(without autotags), and initialize
never runs.
very strange@pulumi/pulumi
has the side-effect of invoking the initialisation? I cannot find it in the code where this is happening.pulumi up
invokes the initialisation and somehow ends up with a different copy of the @pulumi/pulumi
package, which would explain why the initialisation of the package that I am interacting with never gets invoked.faint-table-42725
05/13/2020, 5:26 PM@pulumi/pulumi
will also bring in the runtime. It’s entirely possible you somehow have two copies of @pulumi/pulumi
depending on how your dependencies are setup. You can easily verify this via your package-lock.json
or yarn.lock
wonderful-dog-9045
05/14/2020, 7:59 AMpulumi up
loads its own, regardless of package-lock?faint-table-42725
05/14/2020, 4:04 PMwonderful-dog-9045
05/14/2020, 4:28 PM