icy-controller-6092
08/22/2022, 5:42 PMimport type { Provider } from '@pulumi/aws'
seems like it doesn’t work. Easy workaround though (just use aws.Provider
instead through a regular import). but I’m curious to know why it doesn’t work?little-cartoon-10569
08/22/2022, 10:58 PMicy-controller-6092
08/24/2022, 5:12 PMlittle-cartoon-10569
08/24/2022, 7:53 PMimport { Provider } from '@pulumi/aws'
icy-controller-6092
08/24/2022, 9:45 PMimport type { Class } from 'pkg'
should also work as long as Class
is only used as a type in the importing moduleimport * as aws from '@pulumi/aws'
import type { Region } from '@pulumi/aws'
and here is the exact error:
TSError: ⨯ Unable to compile TypeScript:
src/platformapi/index.ts(2,13): error TS1005: '=' expected.
src/platformapi/index.ts(2,29): error TS1005: ';' expected.
src/platformapi/index.ts(2,15): error TS2304: Cannot find name 'Region'.
src/platformapi/index.ts(2,24): error TS2304: Cannot find name 'from'.
src/platformapi/index.ts(9,36): error TS2304: Cannot find name 'Region'.
typescript
module I have installed in my projectlittle-cartoon-10569
08/24/2022, 9:59 PMicy-controller-6092
08/24/2022, 10:01 PMmelodic-car-16900
08/29/2022, 3:28 PMlittle-cartoon-10569
08/29/2022, 8:49 PMmelodic-car-16900
08/29/2022, 8:57 PMlittle-cartoon-10569
08/29/2022, 8:59 PM