sparse-intern-71089
05/11/2020, 10:44 PMgentle-diamond-70147
05/12/2020, 1:51 AMlittle-cartoon-10569
05/12/2020, 2:36 AM"compilerOptions": {
"composite": true,
"declaration": true,
"declarationMap": true,
"strict": true,
"target": "es2017",
"module": "esnext",
"moduleResolution": "node",
The module in the library just exports a function, registerAutoTags
The app project's tsconfig includes this:
"references": [
{
"path": "../pulumi"
}
And the app's index.ts has this:
import { registerAutoTags } from "../../pulumi/autotag/autotag";
// Automatically inject tags.
registerAutoTags({
"user:Project": pulumi.getProject(),
"user:Stack": pulumi.getStack(),
"Env": "Sandbox",
});
little-cartoon-10569
05/12/2020, 2:38 AMgentle-diamond-70147
05/12/2020, 8:09 PMpulumi up
little-cartoon-10569
05/12/2020, 8:55 PMpulumi preview
. I didn't know there was another way to run it...gentle-diamond-70147
05/12/2020, 9:25 PMlittle-cartoon-10569
05/12/2020, 9:26 PMgentle-diamond-70147
05/12/2020, 9:28 PMregisterAutoTags()
called before all Pulumi resource creations?little-cartoon-10569
05/12/2020, 9:33 PMlittle-cartoon-10569
05/12/2020, 9:34 PMlittle-cartoon-10569
05/12/2020, 9:38 PMlittle-cartoon-10569
05/12/2020, 9:43 PMregisterAutoTags
function. That works. This reminds me of the issue I had a few days ago where I was using awsx v0.18 with pulumi v2: the lack of peerDependencies in awsx cause a different but similar error.little-cartoon-10569
05/12/2020, 9:44 PMlittle-cartoon-10569
05/12/2020, 9:46 PMlittle-cartoon-10569
05/12/2020, 9:59 PMnpm install
, just in case. pulumi preview
is still failing with the same error.