Open ChristopheBougere opened 5 years ago
@ChristopheBougere thank you for this information
Can you share the logs ?
(you can get it by setting environment variable SLS_DEBUG=*
)
Thank you
Sure:
SLS_DEBUG=* npx serverless package
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command create
Serverless: Load command install
Serverless: Load command package
Serverless: Load command deploy
Serverless: Load command deploy:function
Serverless: Load command deploy:list
Serverless: Load command deploy:list:functions
Serverless: Load command invoke
Serverless: Load command invoke:local
Serverless: Load command info
Serverless: Load command logs
Serverless: Load command metrics
Serverless: Load command print
Serverless: Load command remove
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command slstats
Serverless: Load command plugin
Serverless: Load command plugin
Serverless: Load command plugin:install
Serverless: Load command plugin
Serverless: Load command plugin:uninstall
Serverless: Load command plugin
Serverless: Load command plugin:list
Serverless: Load command plugin
Serverless: Load command plugin:search
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command invoke
Serverless: Load command invoke:stepf
Serverless: Load command validate
Serverless: Invoke package
Serverless: Invoke aws:common:validate
Serverless: Invoke aws:common:cleanupTempDir
Type Error ---------------------------------------------
contents.trim is not a function
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Stack Trace --------------------------------------------
TypeError: contents.trim is not a function
at match.replace (/Users/mbp/Desktop/repro-stepfunction-validator/node_modules/serverless/lib/classes/Variables.js:296:39)
at String.replace (<anonymous>)
at Variables.cleanVariable (/Users/mbp/Desktop/repro-stepfunction-validator/node_modules/serverless/lib/classes/Variables.js:294:25)
at _.map.match (/Users/mbp/Desktop/repro-stepfunction-validator/node_modules/serverless/lib/classes/Variables.js:324:22)
at arrayMap (/Users/mbp/Desktop/repro-stepfunction-validator/node_modules/lodash/lodash.js:639:23)
at Function.map (/Users/mbp/Desktop/repro-stepfunction-validator/node_modules/lodash/lodash.js:9556:14)
at Variables.getMatches (/Users/mbp/Desktop/repro-stepfunction-validator/node_modules/serverless/lib/classes/Variables.js:322:14)
at Variables.populateValue (/Users/mbp/Desktop/repro-stepfunction-validator/node_modules/serverless/lib/classes/Variables.js:361:26)
at requiredConfigs.map.config (/Users/mbp/Desktop/repro-stepfunction-validator/node_modules/serverless/lib/classes/Variables.js:134:16)
at Array.map (<anonymous>)
at disableDepedentServices (/Users/mbp/Desktop/repro-stepfunction-validator/node_modules/serverless/lib/classes/Variables.js:133:48)
at Variables.disableDepedentServices (/Users/mbp/Desktop/repro-stepfunction-validator/node_modules/serverless/lib/classes/Variables.js:93:12)
at Variables.prepopulateService (/Users/mbp/Desktop/repro-stepfunction-validator/node_modules/serverless/lib/classes/Variables.js:132:19)
at initialCall (/Users/mbp/Desktop/repro-stepfunction-validator/node_modules/serverless/lib/classes/Variables.js:160:12)
at Variables.initialCall (/Users/mbp/Desktop/repro-stepfunction-validator/node_modules/serverless/lib/classes/Variables.js:67:12)
at Variables.populateService (/Users/mbp/Desktop/repro-stepfunction-validator/node_modules/serverless/lib/classes/Variables.js:159:17)
at serverless.variables.populateObject.then.parsedObject (/Users/mbp/Desktop/repro-stepfunction-validator/node_modules/serverless-step-functions/lib/yamlParser.js:41:37)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
at process.topLevelDomainCallback (domain.js:120:23)
From previous event:
at serverless.yamlParser.parse.then.serverlessFileParam (/Users/mbp/Desktop/repro-stepfunction-validator/node_modules/serverless-step-functions/lib/yamlParser.js:18:10)
at process._tickCallback (internal/process/next_tick.js:68:7)
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
OS: darwin
Node Version: 10.15.3
Serverless Version: 1.44.1
Since I upgraded to serverless 1.44.1, I'm having this error:
Here is a reproduction code: serverless.yml
package.json