hello everyone! I am following tutorial and stoppe...
# seed
r
hello everyone! I am following tutorial and stopped on seed set up with this error (screen shot) can any1 advice what to do to fix this?
r
The supported version of CDK is fixed and specific. If you run
Copy code
npx create-serverless-stack@latest my-sst-app
Try taking the versions from the package.json that's created and copy them over to your app
r
thanks Ross, I updated package.json as you told and it worked…
r
cool
I think with an upcoming version of CDK it'll be possible to include it as a peer dependency and not be as tied into a version
r
it would be cool I lost a bit time yesterday on this 😄
r
As I understand it, it's down to the way CDK works rather than SST but the SST guys can confirm
f
@Ross Coundon Appreciate the insight.
@Robert Kmieciak do you mind sharing what you ended up changing to get it to work?
r
sure thing so in general i run command
npx create-serverless-stack@latest my-sst-app
when the app was created I checked versions inside
package.json
and noticed following version differrences
f
Thanks Robert! Btw, which chapter are you on? Maybe we weren’t keeping the code in the chapter up to date.
r
I was on this one https://serverless-stack.com/chapters/deploying-through-seed.html my problems started with not passing unit tests, I did a lot of things before I asked for help here. Was removing package.json and package-lock.json and downgrading node version and a few other things. Also I was relying only on my own code (not using your repos at all). Thing worth mentioning is that I am not a developer so it is highly probable that I did something wrong while refactoring code/repository in chapter (infrastructure as a code - there were some moves there if I recall it correctly 🙂 )
so now when I was deploying app with seed I had to add all the serverless plugins after changing directory
f
Ah got it! Appreciate the details!
r
in general when I upgraded package.json with latest versions it solved my issue and deploy with seed started working. thanks for support 🙂 cheers!