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

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

Open
A-Anand12 opened this issue Jun 20, 2023 · 5 comments
Open

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

A-Anand12 opened this issue Jun 20, 2023 · 5 comments

Comments

@A-Anand12
Copy link

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
Copy link

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
Copy link
Collaborator

rpii commented Jun 26, 2023 via email

@aaggarwal-sumo
Copy link

aaggarwal-sumo commented Aug 3, 2023

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

@gpaciga
Copy link

gpaciga commented Aug 16, 2023

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
Copy link
Collaborator

rpii commented Aug 18, 2023 via email

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

5 participants