Hi… This is odd and I’m not sure what to do so I’m posting here. All of a sudden I’m unable to run any serverless command. they all hang at the same point when using “SLS_DEBUG=*”. The output looks like this (shortened it a bit):
Serverless: Load command interactiveCli
Serverless: Load command config
Serverless: Load command config:credentials
.
.
.
Serverless: Load command param:get
Serverless: Load command param:list
Serverless: Load command studio
It always ends with “Serverless: Load command studio”. and hangs with no output. This occurs with package, deploy, offline, etc. I’m pretty stumped here.
I’m using serverless-webpack with typescript. Here are all of my plugins:
- serverless-webpack
- serverless-offline
- serverless-pseudo-parameters
- serverless-dynamodb-local
If it helps, here’s my webpack:
const path = require('path');
const CopyPlugin = require('copy-webpack-plugin');
const nodeExternals = require('webpack-node-externals');
const slsw = require('serverless-webpack');
const webpack = require('webpack')
const fs = require('fs')
process.env.NODE_ENV = slsw.lib.serverless.service.provider.environment.NODE_ENV
module.exports = {
entry: slsw.lib.entries,
externals: [
/aws-sdk/, // Available on AWS Lambda
nodeExternals()
],
target: 'node',
module: {
rules: [
{
test: /\.tsx?$/,
exclude: [
/node_modules/,
path.resolve(__dirname, "src/handlers/common/node_modules"),
path.resolve(__dirname, "src/handlers/handlers/cancelationInitiate/node_modules"),
path.resolve(__dirname, "src/handlers/handlers/cancelationStatus/node_modules"),
path.resolve(__dirname, "src/handlers/handlers/cancelationSurvey/node_modules"),
// path.resolve(__dirname, "src/handlers/handlers/swagger/node_modules"),
path.resolve(__dirname, "src/handlers/handlers/cancelationInitiate/test"),
path.resolve(__dirname, "src/handlers/handlers/cancelationSurvey/test"),
path.resolve(__dirname, "src/handlers/handlers/cancelationStatus/test"),
path.resolve(__dirname, "src/handlers/common/test")
],
loader: 'ts-loader',
options: {
configFile: "tsconfig.production.json"
}
}
],
},
mode: process.env.NODE_ENV === 'local_dev' ? 'development' : 'production',
resolve: {
extensions: [ '.ts', '.js', '.json' ],
alias: {
'decimal.js': path.resolve(__dirname, 'node_modules/decimal.js/decimal.js')
}
},
plugins: [
new webpack.EnvironmentPlugin([ 'NODE_ENV', slsw.lib.serverless.service.provider.environment.NODE_ENV]),
],
}
Any ideas?