Jeff Cordova
01/05/2022, 6:28 AMnpx create-serverless-stack@latest notes
cd notes
npx sst start
Then I get this error:
/.../Serverless/my-sst-app/node_modules/@aws-cdk/core/lib/stack.js:78
throw new Error(`Stack name must match the regular expression: ${VALID_STACK_NAME_REGEX.toString()}, got '${this.stackName}'`);
^
Error: Stack name must match the regular expression: /^[A-Za-z][A-Za-z0-9-]*$/, got '1dmg-my-sst-app-debug-stack'
at new Stack (.../Desktop/Serverless/my-sst-app/node_modules/@aws-cdk/core/lib/stack.js:78:19)
at new DebugStack (/.../Serverless/my-sst-app/node_modules/@serverless-stack/cli/assets/debug-stack/lib/DebugStack.js:11:5)
at Object.<anonymous> (/.../Serverless/my-sst-app/node_modules/@serverless-stack/cli/assets/debug-stack/bin/index.js:25:15)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
at internal/main/run_main_module.js:17:47
There was an error synthesizing your app.
Noah D
01/05/2022, 6:46 AMmanitej
01/05/2022, 6:47 AMsst.json
file @Jeff CordovaJeff Cordova
01/05/2022, 6:57 AMmanitej
01/05/2022, 7:01 AM1dmg
?Jeff Cordova
01/05/2022, 7:01 AMJeff Cordova
01/05/2022, 7:01 AMmanitej
01/05/2022, 7:03 AMstage-name
+ app_name
+ debug-stack
,
stack name shouldn’t start with a number, so if you’re naming your stage as 1dmg
its going to start with a number and the regex breaks. try changing the stage name to something else
npx sst start --stage dev
Jeff Cordova
01/05/2022, 7:04 AMmanitej
01/05/2022, 7:05 AMJeff Cordova
01/05/2022, 7:24 AM