Skip to content

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

@savnik

Description

@savnik

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions