question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npx projen upgrade-progen failing for cdk typescript projen

See original GitHub issue

Hi Team,

Once i started to upgrade the projen configuration of my AWS CDK Typescript Project. I am failing to compile the code with npm run build command. The following error is getting generated by the console. node_modules/@types/node/child_process.d.ts:267:18 - error TS2304: Cannot find name 'AbortSignal'.

Here is the my .projenrc.js file

`const { AwsCdkConstructLibrary } = require(‘projen’);

const project = new AwsCdkConstructLibrary({

cdkVersion: ‘1.124.0’,

majorVersion: 0,

cdkDependencies: [ ‘@aws-cdk/core’, ‘@aws-cdk/aws-iam’, ‘@aws-cdk/aws-lambda’, ‘@aws-cdk/aws-events’, ‘@aws-cdk/aws-events-targets’, ‘@aws-cdk/custom-resources’, ‘@aws-cdk/aws-sns’, ‘@aws-cdk/aws-lambda-python’, ],

cdkTestDependencies: undefined, /* AWS CDK modules required for testing. */

deps: [ ],

devDeps: [ ‘ts-node’, ‘@aws-cdk/assert’, ],

// packageName: undefined, /* The “name” in package.json. / // release: undefined, / Add release management to this project. */ });

project.addPackageIgnore(‘.vscode’); project.addPackageIgnore(‘.devcontainer’); project.addPackageIgnore(‘devops-pipeline.yaml’); project.synth(); `

Please suggest what needs to be changed here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
hoegertncommented, Oct 25, 2021

Sorry, I meant adding this as options to your projen file. It will then add it to the tsconfig file.

But I just saw that it is about at JSII project for constructs. Sadly, this fix does not work there on build time.

Only for plain TS projects.

1reaction
hoegertncommented, Oct 25, 2021

The fix is released in the latest @types/node

Remove your lock file and install again. This should fix it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug: `npx projen new awscdk-app-ts` or `yarn projen:upgrade ...
I'm able to repro this 100% of the time on both gitpod and locally. Simply create a new awscdk-app-ts or upgrade an existing...
Read more >
A Beginner's Guide to Create AWS CDK ... - DEV Community ‍ ‍
Introduction. AWS CDK allows you to create your Construct Library and publish it to npm or PyPI. Using projen makes the development of ......
Read more >
How to simplify project setup with Projen - Tidy Cloud AWS
Now when I run the command npx projen package.json file has new CDK dependencies in it, new versions, and new packages. The project...
Read more >
A Beginner's Guide to Create AWS CDK ... - hayao-k.dev
Introduction AWS CDK allows you to create your own Construct Library and publish it to npm or PyPI. Using projen makes the development...
Read more >
API Reference | projen
AwsCdkTypeScriptApp, AWS CDK app in TypeScript. awscdk.CdkConfig, Represents cdk.json ... This will fail if the project already has a task with this name....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found