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

inflight:This module is not supported, and leaks memory #32801

Open
1 task
sholtomaud opened this issue Jan 8, 2025 · 10 comments
Open
1 task

inflight:This module is not supported, and leaks memory #32801

sholtomaud opened this issue Jan 8, 2025 · 10 comments
Assignees
Labels
bug This issue is a bug. p2 package/tools Related to AWS CDK Tools or CLI

Comments

@sholtomaud
Copy link

Describe the bug

npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported

Regression Issue

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

Last Known Working CDK Version

2.174.0 (build 9604329)

Expected Behavior

no deprecations or leaks memory

Current Behavior

deprecations & leaks memory

Reproduction Steps

cdk init app --language=typescript

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

CDK 2.174.0 (build 9604329)

Framework Version

No response

Node.js Version

Node v22.12.0

OS

macos

Language

TypeScript

Language Version

No response

Other information

No response

@sholtomaud sholtomaud added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Jan 8, 2025
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Jan 8, 2025
@ashishdhingra ashishdhingra self-assigned this Jan 9, 2025
@ashishdhingra ashishdhingra added p2 investigating This issue is being investigated and/or work is in progress to resolve the issue. and removed needs-triage This issue or PR still needs to be triaged. labels Jan 9, 2025
@ashishdhingra
Copy link
Contributor

@sholtomaud Good afternoon. Thanks for reporting the issue. Have you tried using latest version of CDK (currently 2.174.1) and corresponding packages in package.json? Using this version of packages and running npm install doesn't give any vulnerability warning.

  • Installed latest version of CDK CLI using command sudo npm install -g aws-cdk.
  • Output of cdk --version is 2.174.1 (build f353fc7).
  • Updated CDK package versions in package.json to 2.174.1 (both in devDependencies and dependencies. Ran npm install:
    changed 16 packages, and audited 442 packages in 8s
    
    64 packages are looking for funding
      run `npm fund` for details
    
    found 0 vulnerabilities
    

Below is package.json on my end for reference:

{
  "name": "cdktest",
  "version": "0.1.0",
  "bin": {
    "cdktest": "bin/cdktest.js"
  },
  "scripts": {
    "build": "tsc",
    "watch": "tsc -w",
    "test": "jest",
    "cdk": "cdk",
    "integ-test": "integ-runner"
  },
  "devDependencies": {
    "@eslint/js": "^9.14.0",
    "@types/jest": "^29.5.12",
    "@types/node": "20.14.9",
    "aws-cdk": "2.174.1",
    "eslint": "^9.14.0",
    "globals": "^15.12.0",
    "jest": "^29.7.0",
    "ts-jest": "^29.1.5",
    "ts-node": "^10.9.2",
    "typescript": "~5.5.3",
    "typescript-eslint": "^8.13.0"
  },
  "dependencies": {
    "@aws-cdk/aws-amplify-alpha": "2.174.1-alpha.0",
    "@aws-cdk/aws-redshift-alpha": "2.174.1-alpha.0",
    "@aws-cdk/aws-scheduler-alpha": "2.174.1-alpha.0",
    "@aws-cdk/aws-scheduler-targets-alpha": "2.174.1-alpha.0",
    "@aws-cdk/aws-glue-alpha": "2.174.1-alpha.0",
    "@aws-cdk/integ-runner": "^2.174.1-alpha.0",
    "@aws-cdk/aws-lambda-go-alpha": "2.174.1-alpha.0",
    "@aws-cdk/aws-lambda-python-alpha": "2.174.1-alpha.0",
    "@aws-cdk/integ-tests-alpha": "^2.174.1-alpha.0",
    "@aws-cdk/lambda-layer-kubectl-v24": "2.0.242",
    "aws-cdk-lib": "2.174.1",
    "@aws-cdk/cloud-assembly-schema": "39.1.38",
    "constructs": "^10.0.0",
    "source-map-support": "^0.5.21"
  }
}

Thanks,
Ashish

@ashishdhingra ashishdhingra added response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Jan 9, 2025
Copy link

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 Jan 12, 2025
@sholtomaud
Copy link
Author

@ashishdhingra yes, I have.

@github-actions github-actions bot removed closing-soon This issue will automatically close in 4 days unless further comments are made. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. labels Jan 12, 2025
@ashishdhingra
Copy link
Contributor

@ashishdhingra yes, I have.

@sholtomaud Could you please share your package.json?

Thanks,
Ashish

@ashishdhingra ashishdhingra added the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Jan 13, 2025
Copy link

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 Jan 15, 2025
@sholtomaud
Copy link
Author

No it is the standard package.json that you provide as a part of the npx cdk init

@github-actions github-actions bot removed closing-soon This issue will automatically close in 4 days unless further comments are made. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. labels Jan 16, 2025
@ashishdhingra
Copy link
Contributor

No it is the standard package.json that you provide as a part of the npx cdk init

@sholtomaud Good afternoon. It might be the case that the project generated by cdk init is referencing the old version of aws-cdk and aws-cdk-lib (and some other experimental CDK packages). Please use the following steps if this is the case:

  • Upgrade your CDK CLI version to latest one using command sudo npm install -g aws-cdk.
  • Use command cdk --version to find the CDK version (e.g. 2.176.0 (build 899965d)).
  • Update CDK package(s) version in package.json to the latest version (e.g. 2.176.0).
  • Run npm install to re-install all the packages in package.json.

Thanks,
Ashish

@ashishdhingra ashishdhingra added the closing-soon This issue will automatically close in 4 days unless further comments are made. label Jan 16, 2025
@sholtomaud
Copy link
Author

Generally i do npx cdk init. Are you saying that npx will install outdated versions?

@github-actions github-actions bot removed the closing-soon This issue will automatically close in 4 days unless further comments are made. label Jan 17, 2025
@ashishdhingra
Copy link
Contributor

Generally i do npx cdk init. Are you saying that npx will install outdated versions?

@sholtomaud I didn't test using npx. But upgrading to latest CDK version in package.json and re-installing NPM packages should get rid of vulnerability warnings. Feel free to share your package.json for analysis.

@ashishdhingra ashishdhingra added the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Jan 21, 2025
@sholtomaud
Copy link
Author

run npx cdk init. that's the recommended approach.

@github-actions github-actions bot removed the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Jan 22, 2025
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. p2 package/tools Related to AWS CDK Tools or CLI
Projects
None yet
Development

No branches or pull requests

2 participants