Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load configuration file: Cannot read property 'type' of undefined #2302

Closed
Alexsey opened this issue Jan 2, 2020 · 1 comment
Closed

Comments

@Alexsey
Copy link

Alexsey commented Jan 2, 2020

I have started a Wallaby with this Config File

module.exports = function () {
  return {
    env: {
      type: 'node',
    },
    ignoreFileLoadingDependencyTracking: true,
  }
}

and it failed.

At the same time, autoconfiguration works well

Failing Tests

Cannot read property 'type' of undefined

Wallaby Console

wallaby.js started
core v1.0.806
Failed to load configuration file: Cannot read property 'type' of undefined

Wallaby diagnostics report

Unfortunately, the diagnostics report failed to be generated. Probably because the crash occurred on too early stage

Expected result

If there is really something wrong with the config, the error should not be confusing and explain what I, as a user, have done wrong and how can I fix it

@smcenlly
Copy link
Member

smcenlly commented Jan 2, 2020

Thanks for reporting the error - this was a bug in our logic that parsed your configuration file. There is indeed something wrong with your configuration. If you update to the latest version of Wallaby.js core (v1.0.807) you will now get a message that says: "Files property must be non-empty array of files/file patterns".

If you need assistance configuring Wallaby, our docs should help. We also have a page with examples that you may find useful. If you are stuck or have a sample you can provide, we're happy to take a look at the configuration for you.

@smcenlly smcenlly closed this as completed Jan 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants