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

aws-cdk-lib/custom-resources: error TS2503: Cannot find namespace 'AWSLambda' #31981

Closed
1 task
mfatihaktas opened this issue Nov 1, 2024 · 2 comments
Closed
1 task
Assignees
Labels
@aws-cdk/aws-lambda Related to AWS Lambda bug This issue is a bug. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

Comments

@mfatihaktas
Copy link

Describe the bug

import { OnEventRequest } from 'aws-cdk-lib/custom-resources/lib/provider-framework/types';

causes

node_modules/aws-cdk-lib/custom-resources/lib/provider-framework/types.d.ts:27:41 - error TS2503: Cannot find namespace 'AWSLambda'.

27 export interface OnEventRequest extends AWSLambda.CloudFormationCustomResourceEventCommon {

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

No response

Expected Behavior

Import should work.

Current Behavior

node_modules/aws-cdk-lib/custom-resources/lib/provider-framework/types.d.ts:27:41 - error TS2503: Cannot find namespace 'AWSLambda'.

27 export interface OnEventRequest extends AWSLambda.CloudFormationCustomResourceEventCommon {

Reproduction Steps

import { OnEventRequest } from 'aws-cdk-lib/custom-resources/lib/provider-framework/types';

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

Latest

Framework Version

No response

Node.js Version

v18.20.2

OS

MacOS Version 14.7

Language

TypeScript

Language Version

No response

Other information

No response

@mfatihaktas mfatihaktas added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Nov 1, 2024
@github-actions github-actions bot added the @aws-cdk/aws-lambda Related to AWS Lambda label Nov 1, 2024
@mfatihaktas mfatihaktas changed the title aws-cdk-lib/custom-resources: node_modules/aws-cdk-lib/custom-resources/lib/provider-framework/types.d.ts:27:41 - error TS2503: Cannot find namespace 'AWSLambda' aws-cdk-lib/custom-resources: error TS2503: Cannot find namespace 'AWSLambda' Nov 1, 2024
@ashishdhingra ashishdhingra self-assigned this Nov 1, 2024
@ashishdhingra ashishdhingra added p2 needs-reproduction This issue needs reproduction. and removed needs-triage This issue or PR still needs to be triaged. labels Nov 1, 2024
@ashishdhingra
Copy link
Contributor

@mfatihaktas Good morning. Thanks for opening the issue. Somehow, using the latest version 2.165.0ofaws-cdk-lib, the issue is not reproducible. Could you try using the latest version, ensuring that you run npm install` to update the modules locally? If error still persists, please share minimal reproducible CDK project to reproduce the issue.

Thanks,
Ashish

@ashishdhingra ashishdhingra added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed needs-reproduction This issue needs reproduction. labels Nov 1, 2024
Copy link

github-actions bot commented Nov 3, 2024

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

@github-actions github-actions bot added the closing-soon This issue will automatically close in 4 days unless further comments are made. label Nov 3, 2024
@github-actions github-actions bot added closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Nov 8, 2024
@github-actions github-actions bot closed this as completed Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-lambda Related to AWS Lambda bug This issue is a bug. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Projects
None yet
Development

No branches or pull requests

2 participants