serverless / serverless-plugin-typescript

Serverless plugin for zero-config Typescript support
MIT License
784 stars 225 forks source link

Facing error in custom stage declaration in aws-nodejs-typescript #215

Closed mithundas79 closed 4 years ago

mithundas79 commented 4 years ago

Hi sir, I am using this plugin very recently, everything works for me except - I could not declare a new custom variable in my serverless.ts file. I was trying to do following (as i used to do in the yml file)

custom: {
    webpack: {
      webpackConfig: './webpack.config.js',
      includeModules: true
    },
    myStage: ${opt:stage, self:provider.stage}
  },

Here I am getting error for myStage... and if i put ${opt:stage, self:provider.stage} under `` it gives another error in my VSCode editor, clearly I am not writing it correctly. Can you please help.

mithundas79 commented 4 years ago

Its not a bug related to this plugin... sorry