Configuration error at root: unrecognized property 'frameworkVersion' when running
sls package or
sls deploy on version 1.78.0
Hi Dave. This is a message from our newly released validator for the serverless.yml to try and help point folks to potential issues with their serverless.yml. Could you share the serverless.yml for the project returning this method at all?
Hi, we are seeing the same error since yesterday.
We have got the following line in our serverless.yml config file:
frameworkVersion: ">=1.17.0 <2.0.0"
The error message should tell you how to temporarily deactivate the check. We also have an update going out shortly (and is possibly even out already) to correct this.
I had had
frameworkVersion: "1.78.0" at the top level.
Just tested with 1.78.1 and looks to be fixed now.
I have version 1.78.1 and still getting the error:
Serverless: Configuration error at root: unrecognized property 'querystrings'
functions: test: handler: test.hello events: - http: method: GET path: /test request: parameters: querystrings: sentence: true
And I’m getting the: Configuration error at root: unrecognized property ‘deploymentBucket’ as well.
frameworkVersion: “=1.78.1” is used
You get the error because
deploymentBucket is actually in the wrong spot. The error says you have it root so it needs to be indented under
I’m seeing a similar problem when I set
configValidationMode: error for any versions I tried:
Configuration error at root: unrecognized property ‘resources’
If I set I set
configValidationMode: warn the error does not appear.