manitej
05/25/2022, 3:12 AMRudi
05/26/2022, 10:37 PM/home/rudi/projects/notes/node_modules/esbuild/lib/main.d.ts (467,76): Cannot find name 'Promise'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.
465. export declare function build(options: BuildOptions & { incremental: true }): Promise<BuildIncremental>;
466. export declare function build(options: BuildOptions & { metafile: true }): Promise<BuildResult & { metafile: Metafile }>;
467. export declare function build(options: BuildOptions): Promise<BuildResult>;
/home/rudi/projects/notes/node_modules/esbuild/lib/main.d.ts (468,55): Cannot find name 'Promise'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.
466. export declare function build(options: BuildOptions & { metafile: true }): Promise<BuildResult & { metafile: Metafile }>;
467. export declare function build(options: BuildOptions): Promise<BuildResult>;
468.
/home/rudi/projects/notes/node_modules/esbuild/lib/main.d.ts (479,88): Cannot find name 'Promise'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.
477. */
478. export declare function serve(serveOptions: ServeOptions, buildOptions: BuildOptions): Promise<ServeResult>;
479.
/home/rudi/projects/notes/node_modules/esbuild/lib/main.d.ts (492,79): Cannot find name 'Promise'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.
490. */
491. export declare function transform(input: string, options?: TransformOptions): Promise<TransformResult>;
492.
/home/rudi/projects/notes/node_modules/esbuild/lib/main.d.ts (502,101): Cannot find name 'Promise'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.
500. */
501. export declare function formatMessages(messages: PartialMessage[], options: FormatMessagesOptions): Promise<string[]>;
502.
/home/rudi/projects/notes/node_modules/esbuild/lib/main.d.ts (514,105): Cannot find name 'Promise'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.
512. */
513. export declare function analyzeMetafile(metafile: Metafile | string, options?: AnalyzeMetafileOptions): Promise<string>;
514.
/home/rudi/projects/notes/node_modules/esbuild/lib/main.d.ts (565,65): Cannot find name 'Promise'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.
563. */
564. export declare function initialize(options: InitializeOptions): Promise<void>;
565.
/home/rudi/projects/notes/node_modules/esbuild/lib/main.d.ts (582,16): Cannot find namespace 'WebAssembly'.
580. */
581. wasmModule?: WebAssembly.Module
582.
Deploying stacks
Checking deploy status...
rudijs-notes-MyStack | CREATE_IN_PROGRESS | AWS::CloudFormation::Stack | rudijs-notes-MyStack | User Initiated
Rudi
05/26/2022, 10:38 PMRudi
05/26/2022, 10:39 PM~/p/notes ❯❯❯ ./node_modules/.bin/sst --version
SST: 1.2.9
CDK: 2.24.0
Rudi
05/26/2022, 10:39 PMnode -v
v14.15.4
Rudi
05/26/2022, 10:40 PMRudi
05/26/2022, 10:47 PM/home/rudi/projects/notes/node_modules/aws-cdk-lib/aws-medialive/lib/medialive.generated.d.ts (932,27): Cannot find name 'Array'.
930. */
931. readonly tracks?: Array<CfnChannel.AudioTrackProperty | cdk.IResolvable> | cdk.IResolvable;
932. }
/home/rudi/projects/notes/node_modules/aws-cdk-lib/aws-medialive/lib/medialive.generated.d.ts (978,39): Cannot find name 'Array'.
976. */
977. readonly failoverConditions?: Array<CfnChannel.FailoverConditionProperty | cdk.IResolvable> | cdk.IResolvable;
978. /**
/home/rudi/projects/notes/node_modules/aws-cdk-lib/aws-medialive/lib/medialive.generated.d.ts (2052,38): Cannot find name 'Array'.
2050. */
2051. readonly audioDescriptions?: Array<CfnChannel.AudioDescriptionProperty | cdk.IResolvable> | cdk.IResolvable;
2052. /**
/home/rudi/projects/notes/node_modules/aws-cdk-lib/aws-medialive/lib/medialive.generated.d.ts (2076,40): Cannot find name 'Array'.
2074. */
2075. readonly captionDescriptions?: Array<CfnChannel.CaptionDescriptionProperty | cdk.IResolvable> | cdk.IResolvable;
2076. /**
/home/rudi/projects/notes/node_modules/aws-cdk-lib/aws-medialive/lib/medialive.generated.d.ts (2106,33): Cannot find name 'Array'.
2104. */
2105. readonly outputGroups?: Array<CfnChannel.OutputGroupProperty | cdk.IResolvable> | cdk.IResolvable;
2106. /**
...
/home/rudi/projects/notes/node_modules/esbuild/lib/main.d.ts (492,79): Cannot find name 'Promise'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.
490. */
491. export declare function transform(input: string, options?: TransformOptions): Promise<TransformResult>;
492.
/home/rudi/projects/notes/node_modules/esbuild/lib/main.d.ts (502,101): Cannot find name 'Promise'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.
500. */
501. export declare function formatMessages(messages: PartialMessage[], options: FormatMessagesOptions): Promise<string[]>;
502.
/home/rudi/projects/notes/node_modules/esbuild/lib/main.d.ts (514,105): Cannot find name 'Promise'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.
512. */
513. export declare function analyzeMetafile(metafile: Metafile | string, options?: AnalyzeMetafileOptions): Promise<string>;
514.
/home/rudi/projects/notes/node_modules/esbuild/lib/main.d.ts (565,65): Cannot find name 'Promise'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.
563. */
564. export declare function initialize(options: InitializeOptions): Promise<void>;
565.
/home/rudi/projects/notes/node_modules/esbuild/lib/main.d.ts (582,16): Cannot find namespace 'WebAssembly'.
580. */
581. wasmModule?: WebAssembly.Module
582.
Deploying stacks
Rudi
05/26/2022, 10:49 PMRudi
05/26/2022, 10:59 PMimport { Api } from "@serverless-stack/resources";
export function MyStack({ stack }) {
new Api(stack, "api", {
routes: {
"GET /": "functions/lambda.handler",
},
});
}
the output is missing from the code generated:
// Show the endpoint in the output
stack.addOutputs({
ApiEndpoint: api.url,
});
so you can just click the endpoint from the command line console output.
No worry for me, but a beginner might get lost.Rudi
05/26/2022, 11:01 PM/home/rudi/projects/notes/node_modules/esbuild/lib/main.d.ts (502,101): Cannot find name 'Promise'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.
500. */
501. export declare function formatMessages(messages: PartialMessage[], options: FormatMessagesOptions): Promise<string[]>;
502.
/home/rudi/projects/notes/node_modules/esbuild/lib/main.d.ts (514,105): Cannot find name 'Promise'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.
512. */
513. export declare function analyzeMetafile(metafile: Metafile | string, options?: AnalyzeMetafileOptions): Promise<string>;
514.
/home/rudi/projects/notes/node_modules/esbuild/lib/main.d.ts (565,65): Cannot find name 'Promise'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.
563. */
564. export declare function initialize(options: InitializeOptions): Promise<void>;
565.
/home/rudi/projects/notes/node_modules/esbuild/lib/main.d.ts (582,16): Cannot find namespace 'WebAssembly'.
580. */
581. wasmModule?: WebAssembly.Module
582.
Stacks: There are new infrastructure changes. Press ENTER to redeploy.
As you can see the output is not a clean redeploy prompt, 00's of lines of warnings.Rudi
05/26/2022, 11:01 PMRudi
05/26/2022, 11:05 PMRudi
05/26/2022, 11:09 PM