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

Issue - Builds breaking in @types/prettier/index.d.ts #697

Closed
biffgaut opened this issue May 12, 2022 · 3 comments
Closed

Issue - Builds breaking in @types/prettier/index.d.ts #697

biffgaut opened this issue May 12, 2022 · 3 comments
Labels
bug Something isn't working needs-triage The issue or PR still needs to be triaged

Comments

@biffgaut
Copy link
Contributor

We are seeing build errors in CDK programs since mid-afternoon when a new version of @types/prettier was released. The issue is being tracked on the CDK Github repo.

@biffgaut biffgaut added bug Something isn't working needs-triage The issue or PR still needs to be triaged labels May 12, 2022
@biffgaut
Copy link
Contributor Author

biffgaut commented May 12, 2022

A temporary fix is to add this line to devDependencies:

    "@types/prettier": "2.6.0",

Then delete npm-modules and package-lock.json and run npm install

This should restore your ability to build. CDK has released new V1 and V2 versions pinned to 2.6.0 (Issue 20319). As we are several release numbers behind them in the V1 space, we will be releasing a new V1 release pinned to 2.6.0 for our V1 customers, or catching up with the CDK releases.

@biffgaut
Copy link
Contributor Author

biffgaut commented May 14, 2022

Pinning the @types/prettier version in the AWS Solutions Constructs package.json does not address the issue. If you are seeing this problem, the best course of action is to add this line to devDependencies in package.json:

@types/prettier: "2.6.0",

Then delete npm-modules and package-lock.json and run npm install.

Follow this issue for any updates to @types/prettier that fix the underlying issue.

@biffgaut
Copy link
Contributor Author

Closing this issue to create a new one focused on describing the symptom and recommended solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage The issue or PR still needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant