aruiz-caritsqa / wdio-html-format-reporter

A WebdriverIO plugin. Create a basic HTML formatted report
0 stars 4 forks source link

Error: TypeError: ReporterClass is not a constructor #17

Open ThiagoMFerreira opened 4 years ago

ThiagoMFerreira commented 4 years ago

Hello, After installed the wdio-html-format-reporter and configured it on wdio.conf I am getting an error when I try to execute the test. ERROR @wdio/local-runner: Failed launching test session: TypeError: ReporterClass is not a constructor at BaseReporter.initReporter (C:\Users\Thiago\Documents\projects\wdio\node_modules\@wdio\runner\build\reporter.js:124:14) at Array.map (<anonymous>) at new BaseReporter (C:\Users\Thiago\Documents\projects\wdio\node_modules\@wdio\runner\build\reporter.js:32:39) at Runner.run (C:\Users\Thiago\Documents\projects\wdio\node_modules\@wdio\runner\build\index.js:68:21) at <anonymous> at process._tickDomainCallback (internal/process/next_tick.js:228:7)

I am using WebdriverIO v5, and my wdio.conf.js is that way on the report section:

reporters: ['dot','spec','html-format'],
    reporterOptions: {
        htmlFormat: {
          outputDir: './reports/'
        },
      },
    screenshotPath: `./screenShots`,

How to solve this problem?