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.

CLI and Framework compatibility - confusing error message

See original GitHub issue

When using framework version 1.38.0 with CLI version 1.36.0, running cdk synth throws the following error:

Cloud assembly schema version mismatch: Maximum schema version supported is 1.33.0, 
but found 2.0.0. Please upgrade your CLI in order to interact with this app.

While it’s clear to me that I need to upgrade the CLI version, I see two problems with this error message:

  1. ~This is probably a bug, but it seems like the check compares two different things as the versions compared are off by a major version, 2.0.0 and 1.33.0.~ This is not a bug there was a major version bump of the scheme.
  2. The use of the term Cloud assembly in such a basic functionality of the CDK seems like it can be confusing for many users. While the term is well defined in the CDK documentation I don’t think it’s common among users. Since the action required from the user is to update the CLI I don’t see the added a value of using Cloud assembly in here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

9reactions
alextriacacommented, May 11, 2020

~Excuse my ignorance on this one but have just hit this error message and can’t seem to figure out which version this is referring to and what needs to be upgraded. Does anyone have the fix for this?~ Was being a noob, run npm install -g aws-cdk to upgrade the CDK CLI.

5reactions
wayne00commented, May 13, 2020

@NetaNir you can try to reinstall cdk. npm uninstall -g cdk and then npm install -g aws-cdk

Read more comments on GitHub >

github_iconTop Results From Across the Web

symbol collision being reported on… | Apple Developer Forums
When running various tools, such as "opendiff" I receive the following error reported on stderr: objc[6599]: Class AMSupportURLConnectionDelegate is implemented ...
Read more >
It was not possible to find any compatible framework version ...
Here's a version of your Error Message to make clear what's happening: The specified framework 'Microsoft.NETCore.App', version '2.1.6' was ...
Read more >
Errors | Cloud APIs - Google Cloud
Error Codes; Error Messages; Error Details; Error Info; Error Localization. Error Mapping ... `errors` for backward compatibility with [Google API Client
Read more >
Mocha - the fun, simple, flexible JavaScript test framework
Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous testing simple and fun.
Read more >
Terraform 0.12 Compatibility for Providers
You may see these version numbers in error messages in the event of a protocol compatibility problem. Upgrading to the latest Terraform SDK....
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