webdriverio-community / wdio-html-reporter

Fork of wdio-html-format-reporter
MIT License
18 stars 27 forks source link

TypeError: ReportEvents is not a constructor with wdio v8 #100

Open A-Anand12 opened 1 year ago

A-Anand12 commented 1 year ago

Seeing this error while running a test and the file which throws this error is the htmlReporter.js image image Please let me know if any other info is required to share here.

vdrulerz commented 1 year ago

I am facing similar issue

2023-06-25T12:24:42.709Z ERROR @wdio/config:ConfigParser: Failed loading configuration file: file:///C:/WdioOpenfin/wdio.conf.cucumber.copy.js: ReportEvents is not a constructor TypeError: ReportEvents is not a constructor at file:///C:/WdioOpenfin/node_modules/wdio-html-nice-reporter/lib/htmlReporter.js:10:19

rpii commented 1 year ago

Do you have the updated version of reportEvents?

On Sun, Jun 25, 2023 at 5:27 AM vdrulerz @.***> wrote:

I am facing similar issue

2023-06-25T12:24:42.709Z ERROR @wdio/config:ConfigParser: Failed loading configuration file: file:///C:/WdioOpenfin/wdio.conf.cucumber.copy.js: ReportEvents is not a constructor TypeError: ReportEvents is not a constructor at file:///C:/WdioOpenfin/node_modules/wdio-html-nice-reporter/lib/htmlReporter.js:10:19

— Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/100#issuecomment-1606065013, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEABIEO3CLLLLC3IHTZOGOTXNAVCDANCNFSM6AAAAAAZMWYSLM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

aaggarwal-sumo commented 1 year ago

Version used is: "wdio-html-nice-reporter": "8.1.0"

gpaciga commented 1 year ago

This was resolved for me by removing node_modules and package-lock.json and reinstalling, since the internal dependency was not updated just by upgrading wdio-html-nice-reporter alone.

Shouldn't this package's dependency on wdio-report-events use an explicit version for exactly this kind of reason? https://github.com/rpii/wdio-html-reporter/blob/master/package.json#L46

rpii commented 1 year ago

Yes that is probably a good thing.

On Wed, Aug 16, 2023 at 12:11 PM Gregory Paciga @.***> wrote:

This was resolved for me by removing node_modules and package-lock.json and reinstalling, since the internal dependency was not updated just by upgrading wdio-html-nice-reporter alone.

Shouldn't this package's dependency on wdio-report-events use an explicit version for exactly this kind of reason? https://github.com/rpii/wdio-html-reporter/blob/master/package.json#L46

— Reply to this email directly, view it on GitHub https://github.com/rpii/wdio-html-reporter/issues/100#issuecomment-1681139611, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEABIENFIJSKHGTHXGXR5LLXVULNHANCNFSM6AAAAAAZMWYSLM . You are receiving this because you commented.Message ID: @.***>