serverless-offline-scheduler icon indicating copy to clipboard operation
serverless-offline-scheduler copied to clipboard

Duplicate config error

Open akawalsky opened this issue 5 years ago • 1 comments

When running sls --config serverless.local.yml offline start locally, I get

Got 2 config paths: [serverless.local.yml, serverless.local.yml].Expected single value

This line https://github.com/ajmath/serverless-offline-scheduler/blob/master/lib/scheduler.js#L101 gives me

{"c":"serverless.local.yml","config":"serverless.local.yml"}

I added a hack locally to make it work

if (opts.config && opts.c && opts.config === opts.c) {
      delete opts.c;
}

Serverless version 1.80.0

akawalsky avatar Aug 28 '20 22:08 akawalsky

same issue here @akawalsky , is there a permanent fix

abdullateef97 avatar Oct 24 '20 23:10 abdullateef97