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 · 1 comment
Open
1 task

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

sholtomaud opened this issue Jan 8, 2025 · 1 comment
Assignees
Labels
bug This issue is a bug. p2 package/tools Related to AWS CDK Tools or CLI response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.

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
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 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