examples icon indicating copy to clipboard operation
examples copied to clipboard

aws-ts-hello-fargate has invalid package dependencies for recent Node versions

Open lukehoban opened this issue 3 years ago • 1 comments

Running npm install in this example fails on Node 16 and later.

➜  aws-ts-hello-fargate git:(master) npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: aws-typescript@undefined
npm ERR! Found: @pulumi/[email protected]
npm ERR! node_modules/@pulumi/aws
npm ERR!   @pulumi/aws@"^5.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @pulumi/aws@"^4.0.0" from @pulumi/[email protected]
npm ERR! node_modules/@pulumi/awsx
npm ERR!   @pulumi/awsx@"^0.30.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /Users/lukehoban/.npm/eresolve-report.txt for a full report.

I suspect this is due to stricter rules for perr dependencies.

More recent versions of awsx like 0.40.0 work fine.

lukehoban avatar Jul 19 '22 05:07 lukehoban

PR #1250 definitely fixes this issue (I tested it), but that PR appears to be "stuck" due to a couple of failing tests, and I'm not sure how to get the tests to re-run so we can merge it.

scottslowe avatar Nov 04 '22 22:11 scottslowe