mattymoomoo/aws-power-tuner-ui

Deploy infra - yargs do not define a valid target for node version 13.x

savnik opened this issue · 0 comments

When using node version 13.x and running npm run deploy-infra in the cdk dir following error is display

Package exports for '/home/savnik/blackbird/aws-power-tuner-ui/cdk/node_modules/aws-cdk/node_modules/yargs' do not define a valid '.' target

In the cdk folder the error is originating from npx cdk deploy PowerTunerInfraStack

Steps to reproduce:

  1. Clone the latest master
  2. cd to website-output and run npm install
  3. cd to cdk and run npm install
  4. Still in cdk run npm run deploy-infra
  5. See error message as stated above

Node version: 13.1.0

Quick fix:
Use version 12.x