ajmath / serverless-offline-scheduler

MIT License
96 stars 40 forks source link

Duplicate config error #53

Open akawalsky opened 4 years ago

akawalsky commented 4 years ago

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

abdullateef97 commented 3 years ago

same issue here @akawalsky , is there a permanent fix