-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Hi there,
I've going through a project i'm currently working on updating all of its dependancies to the latest version.
Upgrading wdio-cucumberjs-json-reporter to 6.0.1 leads to this error when I try to import it import cucumberJson from "wdio-cucumberjs-json-reporter";
Environment
Node version: v20.16.0
NPM version: 10.8.1
Ts config
{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"lib": ["ES2022"],
"types": [
"node",
"@wdio/cucumber-framework",
"expect-webdriverio",
"@wdio/browserstack-service",
"@wdio/globals/types"
],
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"removeComments": true,
"sourceMap": true
}
}Relevant packages
@wdio/browserstack-service": "^9.15.0",
@wdio/cli": "^9.15.0",
@wdio/cucumber-framework": "^9.15.0",
@wdio/devtools-service": "^8.42.0",
@wdio/local-runner": "^9.15.0",
@wdio/spec-reporter": "^9.15.0",
@wdio/types": "^9.15.0",
"wdio-wait-for": "^3.1.0",
"multiple-cucumber-html-reporter": "^3.9.2",
Temporary fix
For now I have I used patch-package to patch wdio-cucumberjs-json-reporter@6.0.1 for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/wdio-cucumberjs-json-reporter/dist/cjs/index.d.ts b/node_modules/wdio-cucumberjs-json-reporter/dist/cjs/index.d.ts
index a380670..6e17f28 100644
--- a/node_modules/wdio-cucumberjs-json-reporter/dist/cjs/index.d.ts
+++ b/node_modules/wdio-cucumberjs-json-reporter/dist/cjs/index.d.ts
@@ -1,4 +1,6 @@
declare class CJSCucumberJsJsonReporter {
static attach(data: unknown, type: unknown): void;
}
+
+export default CJSCucumberJsJsonReporter;
//# sourceMappingURL=index.d.ts.map
\ No newline at end of fileMetadata
Metadata
Assignees
Labels
No labels