Throw `new Error`
Remove `inDir` key from `config`