Hi all, need some help with Seed deployment - I’m ...
# help
g
Hi all, need some help with Seed deployment - I’m just updating all my stack dependencies and moving from serverless 1.x to 2.x - I have an overarching package.json that has serverless 2.x installed, but each stack is in a subfolder. I tried both, installing serverless in the overarching package and also in each individual stack, but Seed keeps using the old 1.x version to deploy my stack - not sure why
f
Hey @gligor, can you DM me a link to the build?
g
thanks!
f
Hey @gligor, just wanted to give you an update on what we found. So your app was using SLS v1.72.0, and SLS v1.x does not respect locally installed
serverless
in your package.json. (That’s a feature introduced in v2.x)
g
Hey @Frank, thanks for checking, yeah - but now I’ve updated to the latest serverless, how do I update my stack to use the latest?
f
You can tell Seed to use a specific SLS version by setting the
frameworkVersion
in your
serverless.yml
- https://seed.run/docs/pinning-the-serverless-version Seed will install a version matching the
frameworkVersion
. And if v2.x is installed, SLS will also check for locally installed SLS, and use the local version if found.
Let me know if that makes sense.
g
ok, will do. Last time I used this Jay asked me to remove it from there and install in the package instead :D
f
Ah he might’ve assumed you were using SLS v2 already.
g
all good, I’ll try this and report back
f
Yup let me know!
g
thanks Frank!