Hi everyone! I'm running into some issues when try...
# help
c
Hi everyone! I'm running into some issues when trying to deploy my app with Seed. I'm getting this error message
Cloud assembly schema version mismatch: Maximum schema version supported is 7.0.0, but found 9.0.0
When building locally I noticed that the
manifest.json
version created has version 9.0.0, not sure if its related and how to fix it. Does anyone run into a similar issue? Thanks!
f
Hi Camilo, thanks for letting us know. We are rolling out a fix for it.
We should have it fixed in 30min or so.
I will let you know.
c
Awesome! Thanks @Frank!
f
@Camilo Rios Give it a try and deploy again, it should work now.
c
Got it, I will try again
Same problem @Frank
Copy code
Error: This CDK CLI is not compatible with the CDK library used by your application. Please upgrade the CLI to the latest version.
(Cloud assembly schema version mismatch: Maximum schema version supported is 7.0.0, but found 9.0.0)
    at createAssembly (/tmp/seed/source/node_modules/sst-cdk/lib/api/cxapp/exec.ts:88:15)
    at Object.execProgram (/tmp/seed/source/node_modules/sst-cdk/lib/api/cxapp/exec.ts:79:10)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at CloudExecutable.doSynthesize (/tmp/seed/source/node_modules/sst-cdk/lib/api/cxapp/cloud-executable.ts:67:24)
    at CloudExecutable.synthesize (/tmp/seed/source/node_modules/sst-cdk/lib/api/cxapp/cloud-executable.ts:53:29)
    at CdkToolkit.selectStacksForDiff (/tmp/seed/source/node_modules/sst-cdk/lib/cdk-toolkit.ts:497:22)
    at CdkToolkit.synth (/tmp/seed/source/node_modules/sst-cdk/lib/cdk-toolkit.ts:381:20)
    at Object.synth (/tmp/seed/source/node_modules/sst-cdk/lib/serverless-stack.ts:84:15)
    at Object.synth (/tmp/seed/source/node_modules/@serverless-stack/core/index.js:17:10)
    at synth (/tmp/seed/source/node_modules/@serverless-stack/cli/scripts/util/cdkHelpers.js:378:15)
error Command failed with exit code 1.
info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
ERROR: (Cloud assembly schema version mismatch: Maximum schema version supported is 7.0.0, but found 9.0.0)
f
Oh hmm... taking a look
can you share the dependencies and devDependencies in your package.json?
Something seems off... the generated schema version is 9.0.0, but in the build log I see CDK version 1.79.0 being installed which uses schema version 7.0.0
Can you try removing your
yarn.lock
, run yarn, and commit the
yarn.lock
file?
And I see you have multiple SST services in the repo, can you also make sure both projects are using the same SST (0.9.2) and CDK (1.89.0) versions. This shouldn't be a problem, but let's just to be sure.
c
Copy code
{
  "devDependencies": {
    "@aws-cdk/assert": "1.89.0",
    "@types/aws-lambda": "^8.10.70"
  },
  "dependencies": {
    "@serverless-stack/cli": "0.9.2",
    "@serverless-stack/resources": "0.9.2",
    "@aws-cdk/core": "1.89.0"
  }
}
I'm using the typescript starter inside a monorepo (also the example in your repo)
I will remove the locks and try again
no luck @Frank, same issue
might be because I have 2 services in the monorepo, one using v0.6.2 and the other one using v0.9.2 of
@serverless-stack/cli
?
f
hmm yeah try making them the same version
also the @serverless-stack/resources version and the cdk versions
c
yep, trying that now
f
Make them consistent between the services
Yup
c
yep, its working now, thanks @Frank!
f
Nice! So unifying the versions fixed it?
c
yep