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

[bug] JSII Compilation error for Class Decorator #33213

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pcheungamz
Copy link

Reason for this change

A simple way to demo the JSII Compilation error:

TypeError: Cannot read properties of undefined (reading 'flags')
    at symbolIdentifier (/local/home/cheungp/cdk-jsii-error/aws-cdk/node_modules/jsii/lib/common/symbol-id.js:40:17)
    at Transformer.getStatementsForDeclaration (/local/home/cheungp/cdk-jsii-error/aws-cdk/node_modules/jsii/lib/transforms/deprecation-warnings.js:278:64)
    at Transformer.visitor (/local/home/cheungp/cdk-jsii-error/aws-cdk/node_modules/jsii/lib/transforms/deprecation-warnings.js:266:37)
    at visitArrayWorker (/local/home/cheungp/cdk-jsii-error/aws-cdk/node_modules/jsii/node_modules/typescript/lib/typescript.js:93680:49)
    at visitNodes2 (/local/home/cheungp/cdk-jsii-error/aws-cdk/node_modules/jsii/node_modules/typescript/lib/typescript.js:93651:19)
    at visitEachChildOfClassExpression (/local/home/cheungp/cdk-jsii-error/aws-cdk/node_modules/jsii/node_modules/typescript/lib/typescript.js:94392:7)
    at Object.visitEachChild (/local/home/cheungp/cdk-jsii-error/aws-cdk/node_modules/jsii/node_modules/typescript/lib/typescript.js:93866:33)
    at Transformer.visitEachChild (/local/home/cheungp/cdk-jsii-error/aws-cdk/node_modules/jsii/lib/transforms/deprecation-warnings.js:238:19)
    at Transformer.visitor (/local/home/cheungp/cdk-jsii-error/aws-cdk/node_modules/jsii/lib/transforms/deprecation-warnings.js:270:21)
    at visitNode (/local/home/cheungp/cdk-jsii-error/aws-cdk/node_modules/jsii/node_modules/typescript/lib/typescript.js:93618:19)

Description of changes

New file containing Class Decorator.

Describe any new or updated permissions being added

None

Description of how you validated changes

yarn build in package/aws-cdk-lib produces JSII error.

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@pcheungamz pcheungamz requested a review from a team as a code owner January 28, 2025 18:33
@github-actions github-actions bot added the beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK label Jan 28, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team January 28, 2025 18:33
@github-actions github-actions bot added the p2 label Jan 28, 2025
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pull request linter fails with the following errors:

❌ The title prefix of this pull request must be one of "feat|fix|build|chore|ci|docs|style|refactor|perf|test|revert"

If you believe this pull request should receive an exemption, please comment and provide a justification. A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed, add Clarification Request to a comment.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 93d76f4
  • Result: FAILED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants