delta-reporter / delta-reporter-wdio

Delta Reporter plugin for WebdriverIO
Apache License 2.0
2 stars 0 forks source link

Not working with WDIO 8 #41

Open ValentinCondurache opened 1 year ago

ValentinCondurache commented 1 year ago

Hello, I tried to install delta reporter but is not working with latest wdio version (v8). I think that the reason is that is written using CJS modules and not ES modules. Here is the error:

ERROR @wdio/config:ConfigParser: Failed loading configuration file: file://frontend/e2e/app/wdio.app.conf.js:
require() of ES Module \frontend/e2e/node_modules/@wdio/logger/build/index.js from frontend/e2e/node_modules/@delta-reporter/wdio-delta-reporter-service/lib/src/reporter.js not supported.

Instead change the require of index.js in frontend/e2e/node_modules/@delta-reporter/wdio-delta-reporter-service/lib/src/reporter.js 
to a dynamic import() which is available in all CommonJS modules.
stainsmjohnson commented 10 months ago

+1

jayeshphalak93 commented 3 months ago

Did anyone found solution for this issue