Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
stormzak opened this issue Aug 15, 2023 · 1 comment · Fixed by #910
Closed

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

stormzak opened this issue Aug 15, 2023 · 1 comment · Fixed by #910
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@stormzak
Copy link

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

[email protected] 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

@stormzak stormzak added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Aug 15, 2023
kaiz-io added a commit that referenced this issue Sep 1, 2023
@github-actions
Copy link

github-actions bot commented Sep 1, 2023

⚠️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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant