sls4's bug during 5/2~5/7's changed #12479
Replies: 2 comments 3 replies
-
Hello @gavinsui1106, Thank you for bringing this to our attention. We're aware of the issue you've encountered with variable resolution in Serverless Framework v4, and we're actively working on a fix that will be included in the next release. In the meantime, you might consider simplifying your approach to managing parameters and stage configurations. Here are a few alternatives that could help:
I'm curious about the specific requirements that led to the complex configuration you've implemented. Understanding your specific needs can help us provide better guidance and improve how the framework handles such configurations. Could you share more about why this approach was chosen? |
Beta Was this translation helpful? Give feedback.
-
when i used the command
serverless deploy --stage ${env}
in sls3 . it always worked!when i use the command in sls4 first time (2024/5/2) it also worked! but when i use the command after a few days (2024/5/7), it failed!
i dont konw what happend in thoes days, anyone can tell me why ? and how to change my sourcecode? here is the whole error message and my sourcecode.
error message
Failed to resolve variable 'custom.${opt:stage' with resolver 'config' :ERROR :Key "custom.${opt:stage" is not defined in config file.
buildspec.yml
serverless.yml
slsconf/serverless_environment.yml
slsconf/serverless_customDev.yml
Beta Was this translation helpful? Give feedback.
All reactions