-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[🐛 Bug]: Type Error with @typescript/native-preview 7.0.x #15116
Copy link
Copy link
Closed
Labels
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
WebdriverIO Version
latest
Node.js Version
24.13.1
Mode
Standalone Mode
Which capabilities are you using?
What happened?
There's a new check in TypeScript 7.0 preview that this project is now failing when used as a dependency:
../../../node_modules/.pnpm/@wdio+globals@9.23.0_expect-webdriverio@5.3.4_webdriverio@9.24.0/node_modules/@wdio/globals/types.d.ts:3:16 - error TS1540: A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.
3 declare module NodeJS {
~~~~~~
Found 1 error in ../../../node_modules/.pnpm/@wdio+globals@9.23.0_expect-webdriverio@5.3.4_webdriverio@9.24.0/node_modules/@wdio/globals/types.d.ts:3
What is your expected behavior?
type check should pass. This appears to be a permanent change going forward for TS 7.0 so others will likely hit it as they start adopting it.
How to reproduce the bug.
created a simple repro here: https://github.com/mscrivo/wdio-ts-native-repro
Relevant log output
../../../node_modules/.pnpm/@wdio+globals@9.23.0_expect-webdriverio@5.3.4_webdriverio@9.24.0/node_modules/@wdio/globals/types.d.ts:3:16 - error TS1540: A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.
3 declare module NodeJS {
~~~~~~
Found 1 error in ../../../node_modules/.pnpm/@wdio+globals@9.23.0_expect-webdriverio@5.3.4_webdriverio@9.24.0/node_modules/@wdio/globals/types.d.ts:3Code of Conduct
- I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- I have searched the existing issues
Reactions are currently unavailable