sparse-intern-71089
07/23/2021, 9:43 AMlittle-cartoon-10569
07/25/2021, 10:18 PMgifted-island-55702
07/26/2021, 5:43 AMimport {MyResource} from 'my-module/myprovider';
;; ...
const myResource = new MyResource(..., ...);
little-cartoon-10569
07/26/2021, 5:44 AMnew
, so the error message makes no sense to me. Are you exporting a default?gifted-island-55702
07/26/2021, 6:00 AMexport class MyResource extends pulumi.dynamic.Resource {
constructor(name: string, args: ...) {
super(myProvider, name, args);
}
}
gifted-island-55702
07/26/2021, 6:02 AMgifted-island-55702
07/26/2021, 6:02 AMgifted-island-55702
07/26/2021, 6:06 AM_super.call(…)
instead of new Resource
.