Open krisalay opened 3 months ago
same problem here. I upgraded to serveless v4. give it a try if you can
@austencollins would maintenance of https://github.com/dherault/serverless-offline ever be taken over or at least have direct support by the serverless company itself?
I've finally completed my experimental migration project (serverless3 -> 4 & npm -> pnpm) and the only two blocking things left are:
Seems like they are looking for maintainers and I imagine that supporting offline functionality is pretty important for other developers too
edit: shoutouts to hero @DorianMazur
@NicoHinderling Have you tried using the new serverless dev
command for local development? If you did, I'm curious to know what serverless-offline solves that dev mode doesn't 🤔 (other than actually being offline with no internet connection)
@NicoHinderling Have you tried using the new
serverless dev
command for local development? If you did, I'm curious to know what serverless-offline solves that dev mode doesn't 🤔 (other than actually being offline with no internet connection)
I just tried it out and I agree that serverless dev
does seem like it would speed up iterative development when using our "dev" stage, but:
I actually dealt with an outage recently where I control + C'd mid deploy to our biggest service's dev environment and it totally broke our cloudformation :( I had to delete everything and re-create it from the ground up, so particularly for that service, I'd probably never use serverless dev
altogether given:
a. what serverless dev
does under the hood
b. how fragile that service apparently is
@NicoHinderling Thanks for that feedback! That's really helpful.
You could also do sls dev --stage local
or sls dev --stage nico
, wouldn't that solve both issues?
@NicoHinderling Thanks for that feedback! That's really helpful.
You could also do
sls dev --stage local
orsls dev --stage nico
, wouldn't that solve both issues?
these still involve deploying, which also increases our number of resources for that service. We've been hitting the limit recently, but I agree that could be a potential alternative for others
Hmm yeah, that is a good point 🤔
@krisalay Can you check with serverless-offline v14?
Issue description
I am getting the error: Environment: linux, node 20.14.0, framework 3.39.0 (local), plugin 7.2.3, SDK 4.5.1 Docs: docs.serverless.com Support: forum.serverless.com Bugs: github.com/serverless/serverless/issues
Error: Serverless command "offline" not found. Run "serverless help" for a list of all available commands.
Context
I am using