Throw error on require error inside config