-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Bug 🐛help wantedIssues that are free to take by anyone interestedIssues that are free to take by anyone interested
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
WebdriverIO Version
v9.20.0
Node.js Version
v22.12.0
Mode
Standalone Mode
Which capabilities are you using?
-What happened?
When TypeScript is selected in create-wdio starter, dependencies with types are missing.
The tsconfig.json usually references the following globals:
"types": [
"node",
"jasmine",
"@wdio/globals/types",
"expect-webdriverio",
],but corresponding dependencies are missing in package.json, so I have to add them manually: pnpm i -D @types/node @wdio/globals expect-webdriverio
What is your expected behavior?
I would expect missing dependencies with types to be explicitly listed in package.json
How to reproduce the bug.
pnpm create wdio@latest- Choose "E2E testing", agree to use TypeScript
- Open
tsconfig.jsonin VSCode and it will complain
4. `typescript` package is also missing. Add it (`pnpm i -D typescript`) and execute `pnpm tsc --noEmit`, you will get "TS2688"-errors
Relevant log output
❯ pnpm tsc --noEmit
error TS2688: Cannot find type definition file for '@wdio/globals/types'.
The file is in the program because:
Entry point of type library '@wdio/globals/types' specified in compilerOptions
tsconfig.json:12:13
12 "@wdio/globals/types",
~~~~~~~~~~~~~~~~~~~~~
File is entry point of type library specified here.
error TS2688: Cannot find type definition file for 'expect-webdriverio'.
The file is in the program because:
Entry point of type library 'expect-webdriverio' specified in compilerOptions
tsconfig.json:13:13
13 "expect-webdriverio",
~~~~~~~~~~~~~~~~~~~~
File is entry point of type library specified here.
Found 2 errors.Code 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
Metadata
Metadata
Assignees
Labels
Bug 🐛help wantedIssues that are free to take by anyone interestedIssues that are free to take by anyone interested