aws-samples / aws-cdk-examples

Example projects using the AWS CDK
Apache License 2.0
4.96k stars 2.1k forks source link

Property 'asset' does not exist on type 'typeof AssetCode'. #904

Closed stormzak closed 10 months ago

stormzak commented 10 months ago

Describe the bug

when running npm run build within the my-widget-service folder. i get the error of widget_service.ts:49:30 - error TS2339: Property 'asset' does not exist on type 'typeof AssetCode'.

Expected Behavior

Should complete with no error

Current Behavior

my-widget-service@1.0.0 build tsc

widget_service.ts:49:30 - error TS2339: Property 'asset' does not exist on type 'typeof AssetCode'.

49 code: lambda.AssetCode.asset("resources"),



Found 1 error in widget_service.ts:49

### Reproduction Steps

C:\Users\xxxx\Downloads\aws-cdk-examples-master\aws-cdk-examples-master\typescript\my-widget-service>npm run build

### Possible Solution

_No response_

### Additional Information/Context

_No response_

### CDK CLI Version

2.91.0 (build eea12ea)

### Framework Version

_No response_

### Node.js Version

??

### OS

Win11

### Language

Typescript, Python

### Language Version

_No response_
github-actions[bot] commented 10 months ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.