lively-breakfast-59078
06/10/2021, 10:32 AMubuntu-latest
. Has anyone else come across this?
error: Running program '/Users/okal/workspaces/<redacted>/source/<redacted>/infra' failed with an unhandled exception:
TypeError: Class extends value undefined is not a constructor or null
at Object.<anonymous> (/Users/<redacted>/source/<redacted>d/infra/node_modules/@pulumi/cloudwatch/eventRuleMixins.ts:70:56)
at Module._compile (node:internal/modules/cjs/loader:1108:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Function.Module._load (node:internal/modules/cjs/loader:828:14)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:93:18)
at Object.<anonymous> (/Users/<redacted>/source/<redacted>/infra/node_modules/@pulumi/cloudwatch/cloudwatchMixins.ts:16:1)
at Module._compile (node:internal/modules/cjs/loader:1108:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
import {Bucket} from "@pulumi/aws/s3";
, doesn't work, but
import * as aws from "@pulumi/aws";
and subsequently using aws.s3.Bucket does.red-match-15116
06/10/2021, 4:17 PMimport {s3} from "@pulumi/aws"
and then s3.Bucket
should also work. As you’ve discovered, imports appear to only work at the top level or the module level.