webdriverio / webdriverio

Next-gen browser and mobile automation test framework for Node.js
http://webdriver.io
MIT License
9.04k stars 2.5k forks source link

[🐛 Bug]: npm run setup-full command failing since below mentioned update to the v7 branch #10084

Closed amaanbs closed 1 year ago

amaanbs commented 1 year ago

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

v7.30.3

Node.js Version

v18.10.0 (npm v8.19.2)

Mode

Standalone Mode

Which capabilities are you using?

No response

What happened?

Since this commit to the v7 branch, we're unable to run the npm run setup-full command without failures. The error stacktrace is given below.

What is your expected behavior?

Command builds the webdriverio project without any errors or a workaround that we could go ahead with as of now.

How to reproduce the bug.

nvm use v18.10.0; git checkout commit; npm i; npm run setup-full

Relevant log output

╰─ nvm use v18.10.0; cd packages/wdio-browserstack-service; rm -rf node_modules; cd -; rm -rf node_modules; npm i; npm run setup-full; cd packages/wdio-browserstack-service; npm link; cd -
Now using node v18.10.0 (npm v8.19.2)
~/Documents/Work/Current_Issues/Observability/Solutioning_POC/webdriverio/webdriverio
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated ejs@1.0.0: Critical security bugs fixed in 2.5.5

> postinstall
> run-s postinstall:*

> postinstall:husky
> husky install

husky - Git hooks installed

> postinstall:vulnerabilities
> node ./.husky/postinstall.js

##################
### Attention! ###
##################

The WebdriverIO team is aware of the following reported vulnerabilities.
These do not impact packages used by users but ones we use to generate
our public website (webdriver.io). The package in question is 'markdox'
which depends on vulnerabile packages such as: 'dox' and 'ejs'.

Please help us to resolve the issue, see https://github.com/webdriverio/webdriverio/issues/6640

added 1490 packages, and audited 1491 packages in 16s

161 packages are looking for funding
  run `npm fund` for details

6 vulnerabilities (1 moderate, 2 high, 3 critical)

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

> setup-full
> run-s bootstrap-full build

> bootstrap-full
> npm run clean && lerna bootstrap --no-ci && npm run link

> clean
> run-p clean-full:* clean:*

> clean:build
> rimraf ./packages/*/build

> clean:pkglock
> rimraf ./packages/*/package-lock.json

> clean-full:package_modules
> rimraf ./packages/*/node_modules

> clean:tgz
> rimraf ./packages/*/*.tgz

> clean:commands
> rimraf ./packages/wdio-protocols/src/commands

> clean:node_modules
> rimraf ./packages/node_modules

> clean:website
> rimraf website/docs/_*.md website/docs/api/_*.md website/docs/api/**/_*.md website/sidebars.json

> clean:tests
> rimraf tests/typings/**/node_modules tests/typings/**/dist ./coverage

> clean:cache
> rimraf .eslintcache

lerna notice cli v6.6.1
lerna info Bootstrapping 37 packages
lerna info Installing external dependencies
lerna info Symlinking packages and binaries
lerna WARN EREPLACE_EXIST @wdio/types is already installed for @wdio/allure-reporter. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/config is already installed for @wdio/appium-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/types is already installed for @wdio/appium-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/logger is already installed for @wdio/appium-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/logger is already installed for @wdio/browserstack-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/types is already installed for @wdio/browserstack-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST webdriverio is already installed for @wdio/browserstack-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/types is already installed for @wdio/concise-reporter. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/logger is already installed for @wdio/crossbrowsertesting-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST webdriverio is already installed for @wdio/crossbrowsertesting-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/types is already installed for @wdio/crossbrowsertesting-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/logger is already installed for @wdio/cucumber-framework. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/utils is already installed for @wdio/cucumber-framework. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/types is already installed for @wdio/cucumber-framework. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/logger is already installed for @wdio/devtools-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/types is already installed for @wdio/devtools-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST webdriverio is already installed for @wdio/devtools-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/types is already installed for @wdio/dot-reporter. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/types is already installed for @wdio/firefox-profile-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/logger is already installed for @wdio/jasmine-framework. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/types is already installed for @wdio/jasmine-framework. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/utils is already installed for @wdio/jasmine-framework. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/types is already installed for @wdio/junit-reporter. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/logger is already installed for @wdio/local-runner. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/repl is already installed for @wdio/local-runner. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/types is already installed for @wdio/local-runner. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/utils is already installed for @wdio/sauce-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/logger is already installed for @wdio/sauce-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/types is already installed for @wdio/sauce-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST webdriverio is already installed for @wdio/sauce-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/types is already installed for @wdio/selenium-standalone-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/logger is already installed for @wdio/selenium-standalone-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/config is already installed for @wdio/selenium-standalone-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/types is already installed for @wdio/spec-reporter. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/logger is already installed for @wdio/sumologic-reporter. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/types is already installed for @wdio/sumologic-reporter. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/logger is already installed for @wdio/testingbot-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST @wdio/types is already installed for @wdio/testingbot-service. Replacing with symlink...
lerna WARN EREPLACE_EXIST webdriverio is already installed for @wdio/testingbot-service. Replacing with symlink...
lerna success Bootstrapped 37 packages

> link
> node ./scripts/link

> build
> run-s clean:build generate:typings compile copy

> clean:build
> rimraf ./packages/*/build

> generate:typings
> node ./scripts/type-generation/generate-all-typings.js

Generated typings file for webdriver
Generated typings file for appium
Generated typings file for mjsonwp
Generated typings file for chromium
Generated typings file for gecko
Generated typings file for saucelabs
Generated typings file for selenium
Generated typings file for jsonwp

> compile
> node ./scripts/build

npx tsc -b packages/wdio-types/tsconfig.json packages/wdio-protocols/tsconfig.json packages/wdio-logger/tsconfig.json packages/wdio-utils/tsconfig.json packages/wdio-config/tsconfig.json packages/wdio-repl/tsconfig.json packages/webdriver/tsconfig.json packages/devtools/tsconfig.json packages/webdriverio/tsconfig.json packages/wdio-cli/tsconfig.json packages/wdio-reporter/tsconfig.json packages/wdio-runner/tsconfig.json packages/wdio-sync/tsconfig.json packages/eslint-plugin-wdio/tsconfig.json packages/wdio-allure-reporter/tsconfig.json packages/wdio-appium-service/tsconfig.json packages/wdio-browserstack-service/tsconfig.json packages/wdio-concise-reporter/tsconfig.json packages/wdio-crossbrowsertesting-service/tsconfig.json packages/wdio-cucumber-framework/tsconfig.json packages/wdio-devtools-service/tsconfig.json packages/wdio-dot-reporter/tsconfig.json packages/wdio-firefox-profile-service/tsconfig.json packages/wdio-jasmine-framework/tsconfig.json packages/wdio-junit-reporter/tsconfig.json packages/wdio-local-runner/tsconfig.json packages/wdio-mocha-framework/tsconfig.json packages/wdio-sauce-service/tsconfig.json packages/wdio-selenium-standalone-service/tsconfig.json packages/wdio-shared-store-service/tsconfig.json packages/wdio-smoke-test-reporter/tsconfig.json packages/wdio-smoke-test-service/tsconfig.json packages/wdio-spec-reporter/tsconfig.json packages/wdio-static-server-service/tsconfig.json packages/wdio-sumologic-reporter/tsconfig.json packages/wdio-testingbot-service/tsconfig.json packages/wdio-webdriver-mock-service/tsconfig.json
packages/wdio-config/src/lib/FileSystemPathService.ts(3,18): error TS7016: Could not find a declaration file for module 'glob'. '/Users/amaan/Documents/Work/Current_Issues/Observability/Solutioning_POC/webdriverio/webdriverio/packages/wdio-config/node_modules/glob/glob.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/glob` if it exists or add a new declaration (.d.ts) file containing `declare module 'glob';`
packages/webdriver/src/index.ts(5,32): error TS2307: Cannot find module '@wdio/config' or its corresponding type declarations.
packages/devtools/src/index.ts(8,32): error TS2307: Cannot find module '@wdio/config' or its corresponding type declarations.
packages/webdriverio/src/utils/index.ts(11,35): error TS2307: Cannot find module 'devtools' or its corresponding type declarations.
packages/webdriverio/src/utils/index.ts(241,15): error TS2339: Property 'isDevTools' does not exist on type 'Element | Browser'.
  Property 'isDevTools' does not exist on type 'Element'.
packages/webdriverio/src/utils/index.ts(269,72): error TS2339: Property 'isW3C' does not exist on type 'Element | Browser'.
  Property 'isW3C' does not exist on type 'Element'.
packages/webdriverio/src/utils/index.ts(269,84): error TS2339: Property 'isMobile' does not exist on type 'Element | Browser'.
  Property 'isMobile' does not exist on type 'Element'.
packages/webdriverio/src/utils/index.ts(299,15): error TS2339: Property 'isDevTools' does not exist on type 'Element | Browser'.
  Property 'isDevTools' does not exist on type 'Element'.
packages/webdriverio/src/utils/index.ts(325,72): error TS2339: Property 'isW3C' does not exist on type 'Element | Browser'.
  Property 'isW3C' does not exist on type 'Element'.
packages/webdriverio/src/utils/index.ts(325,84): error TS2339: Property 'isMobile' does not exist on type 'Element | Browser'.
  Property 'isMobile' does not exist on type 'Element'.
packages/webdriverio/src/utils/getElementObject.ts(41,22): error TS2339: Property 'isW3C' does not exist on type 'Element | Browser'.
  Property 'isW3C' does not exist on type 'Element'.
packages/webdriverio/src/utils/getElementObject.ts(108,41): error TS2339: Property 'isW3C' does not exist on type 'Element | Browser'.
  Property 'isW3C' does not exist on type 'Element'.
packages/webdriverio/src/commands/browser/getWindowSize.ts(29,18): error TS2339: Property 'isW3C' does not exist on type 'Browser'.
packages/webdriverio/src/commands/browser/keys.ts(41,83): error TS2339: Property 'isDevTools' does not exist on type 'Browser'.
packages/webdriverio/src/commands/browser/keys.ts(45,73): error TS2339: Property 'isDevTools' does not exist on type 'Browser'.
packages/webdriverio/src/commands/browser/keys.ts(54,15): error TS2339: Property 'isW3C' does not exist on type 'Browser'.
packages/webdriverio/src/commands/browser/mock.ts(120,38): error TS2339: Property 'isSauce' does not exist on type 'Browser'.
packages/webdriverio/src/commands/browser/mock.ts(122,15): error TS2339: Property 'isSauce' does not exist on type 'Browser'.
packages/webdriverio/src/commands/browser/mock.ts(139,51): error TS2339: Property 'isSauce' does not exist on type 'Browser'.
packages/webdriverio/src/commands/browser/mock.ts(174,14): error TS2339: Property 'isSauce' does not exist on type 'Browser'.
packages/webdriverio/src/commands/browser/newWindow.ts(61,14): error TS2339: Property 'isMobile' does not exist on type 'Browser'.
packages/webdriverio/src/commands/browser/setTimeout.ts(65,15): error TS2339: Property 'isW3C' does not exist on type 'Browser'.
packages/webdriverio/src/commands/browser/setWindowSize.ts(45,18): error TS2339: Property 'isW3C' does not exist on type 'Browser'.
packages/webdriverio/src/commands/browser/throttle.ts(133,14): error TS2339: Property 'isSauce' does not exist on type 'Browser'.
packages/webdriverio/src/commands/element/addValue.ts(55,15): error TS2339: Property 'isW3C' does not exist on type 'Element'.
packages/webdriverio/src/commands/element/click.ts(126,14): error TS2339: Property 'isW3C' does not exist on type 'Element'.
packages/webdriverio/src/commands/element/doubleClick.ts(28,15): error TS2339: Property 'isW3C' does not exist on type 'Element'.
packages/webdriverio/src/commands/element/dragAndDrop.ts(86,15): error TS2339: Property 'isW3C' does not exist on type 'Element'.
packages/webdriverio/src/commands/element/getLocation.ts(43,14): error TS2339: Property 'isW3C' does not exist on type 'Element'.
packages/webdriverio/src/commands/element/getProperty.ts(24,14): error TS2339: Property 'isW3C' does not exist on type 'Element'.
packages/webdriverio/src/commands/element/getSize.ts(44,14): error TS2339: Property 'isW3C' does not exist on type 'Element'.
packages/webdriverio/src/commands/element/getValue.ts(26,14): error TS2339: Property 'isW3C' does not exist on type 'Element'.
packages/webdriverio/src/commands/element/getValue.ts(26,29): error TS2339: Property 'isMobile' does not exist on type 'Element'.
packages/webdriverio/src/commands/element/isClickable.ts(48,14): error TS2339: Property 'isMobile' does not exist on type 'Element'.
packages/webdriverio/src/commands/element/isDisplayed.ts(75,23): error TS2339: Property 'isDevTools' does not exist on type 'Browser'.
packages/webdriverio/src/commands/element/isDisplayed.ts(77,27): error TS2339: Property 'isW3C' does not exist on type 'Browser'.
packages/webdriverio/src/commands/element/isDisplayed.ts(78,22): error TS2339: Property 'isMobile' does not exist on type 'Browser'.
packages/webdriverio/src/commands/element/isEqual.ts(38,17): error TS2339: Property 'isMobile' does not exist on type 'Browser'.
packages/webdriverio/src/commands/element/moveTo.ts(26,15): error TS2339: Property 'isW3C' does not exist on type 'Element'.
packages/webdriverio/src/types.ts(2,61): error TS2307: Cannot find module 'devtools' or its corresponding type declarations.
packages/webdriverio/src/types.ts(3,76): error TS2307: Cannot find module 'webdriver' or its corresponding type declarations.
packages/webdriverio/src/index.ts(3,23): error TS2307: Cannot find module 'webdriver' or its corresponding type declarations.
packages/webdriverio/src/index.ts(4,26): error TS2307: Cannot find module 'webdriver' or its corresponding type declarations.
packages/webdriverio/src/index.ts(5,32): error TS2307: Cannot find module '@wdio/config' or its corresponding type declarations.
packages/webdriverio/src/index.ts(8,38): error TS2307: Cannot find module 'webdriver' or its corresponding type declarations.
packages/webdriverio/src/index.ts(148,56): error TS2339: Property 'isW3C' does not exist on type 'Browser'.
packages/webdriverio/src/protocol-stub.ts(3,36): error TS2307: Cannot find module 'webdriver' or its corresponding type declarations.
packages/wdio-cli/src/utils.ts(8,36): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
packages/wdio-cli/src/utils.ts(11,30): error TS2307: Cannot find module '@wdio/config' or its corresponding type declarations.
packages/wdio-cli/src/utils.ts(446,12): error TS2722: Cannot invoke an object which is possibly 'undefined'.
packages/wdio-cli/src/utils.ts(446,38): error TS2349: This expression is not callable.
  Not all constituents of type 'boolean | (() => string) | (() => string) | ((radix?: number | undefined) => string)' are callable.
    Type 'false' has no call signatures.
packages/wdio-cli/src/constants.ts(189,65): error TS2722: Cannot invoke an object which is possibly 'undefined'.
packages/wdio-cli/src/constants.ts(189,81): error TS2349: This expression is not callable.
  Not all constituents of type 'boolean | (() => string) | (() => string) | ((radix?: number | undefined) => string)' are callable.
    Type 'false' has no call signatures.
packages/wdio-cli/src/constants.ts(195,65): error TS2722: Cannot invoke an object which is possibly 'undefined'.
packages/wdio-cli/src/constants.ts(195,81): error TS2349: This expression is not callable.
  Not all constituents of type 'boolean | (() => string) | (() => string) | ((radix?: number | undefined) => string)' are callable.
    Type 'false' has no call signatures.
packages/wdio-cli/src/constants.ts(229,9): error TS2722: Cannot invoke an object which is possibly 'undefined'.
packages/wdio-cli/src/constants.ts(229,25): error TS2349: This expression is not callable.
  Not all constituents of type 'boolean | (() => string) | (() => string) | ((radix?: number | undefined) => string)' are callable.
    Type 'false' has no call signatures.
packages/wdio-cli/src/constants.ts(238,9): error TS2722: Cannot invoke an object which is possibly 'undefined'.
packages/wdio-cli/src/constants.ts(238,25): error TS2349: This expression is not callable.
  Not all constituents of type 'boolean | (() => string) | (() => string) | ((radix?: number | undefined) => string)' are callable.
    Type 'false' has no call signatures.
packages/wdio-cli/src/constants.ts(282,65): error TS2722: Cannot invoke an object which is possibly 'undefined'.
packages/wdio-cli/src/constants.ts(282,81): error TS2349: This expression is not callable.
  Not all constituents of type 'boolean | (() => string) | (() => string) | ((radix?: number | undefined) => string)' are callable.
    Type 'false' has no call signatures.
packages/wdio-cli/src/constants.ts(288,65): error TS2722: Cannot invoke an object which is possibly 'undefined'.
packages/wdio-cli/src/constants.ts(288,81): error TS2349: This expression is not callable.
  Not all constituents of type 'boolean | (() => string) | (() => string) | ((radix?: number | undefined) => string)' are callable.
    Type 'false' has no call signatures.
packages/wdio-cli/src/constants.ts(294,65): error TS2722: Cannot invoke an object which is possibly 'undefined'.
packages/wdio-cli/src/constants.ts(294,81): error TS2349: This expression is not callable.
  Not all constituents of type 'boolean | (() => string) | (() => string) | ((radix?: number | undefined) => string)' are callable.
    Type 'false' has no call signatures.
packages/wdio-cli/src/interface.ts(210,44): error TS2339: Property 'name' does not exist on type 'HookError'.
packages/wdio-cli/src/interface.ts(210,91): error TS2339: Property 'stack' does not exist on type 'HookError'.
packages/wdio-cli/src/interface.ts(210,106): error TS2339: Property 'message' does not exist on type 'HookError'.
packages/wdio-cli/src/launcher.ts(6,30): error TS2307: Cannot find module '@wdio/config' or its corresponding type declarations.
packages/wdio-cli/src/commands/repl.ts(2,24): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
packages/wdio-runner/src/utils.ts(3,45): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
packages/wdio-runner/src/utils.ts(4,26): error TS2307: Cannot find module 'webdriver' or its corresponding type declarations.
packages/wdio-runner/src/utils.ts(5,33): error TS2307: Cannot find module '@wdio/config' or its corresponding type declarations.
packages/wdio-runner/src/utils.ts(7,50): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
packages/wdio-runner/src/utils.ts(181,43): error TS7006: Parameter 'browserName' implicitly has an 'any' type.
packages/wdio-runner/src/index.ts(8,30): error TS2307: Cannot find module '@wdio/config' or its corresponding type declarations.
packages/wdio-runner/src/index.ts(10,60): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
packages/wdio-runner/src/index.ts(124,40): error TS2532: Object is possibly 'undefined'.
packages/wdio-runner/src/index.ts(125,35): error TS2532: Object is possibly 'undefined'.
packages/wdio-runner/src/index.ts(125,59): error TS2532: Object is possibly 'undefined'.
packages/wdio-runner/src/index.ts(147,57): error TS2322: Type 'Testrunner | undefined' is not assignable to type 'Omit<Testrunner, "capabilities">'.
  Type 'undefined' is not assignable to type 'Omit<Testrunner, "capabilities">'.
packages/wdio-runner/src/index.ts(148,53): error TS2532: Object is possibly 'undefined'.
packages/wdio-runner/src/index.ts(150,43): error TS2345: Argument of type 'Testrunner | undefined' is not assignable to parameter of type 'Testrunner'.
  Type 'undefined' is not assignable to type 'Testrunner'.
packages/wdio-runner/src/index.ts(154,44): error TS2532: Object is possibly 'undefined'.
packages/wdio-runner/src/index.ts(155,59): error TS2345: Argument of type 'Testrunner | undefined' is not assignable to parameter of type 'Testrunner'.
  Type 'undefined' is not assignable to type 'Testrunner'.
packages/wdio-runner/src/index.ts(168,49): error TS2532: Object is possibly 'undefined'.
packages/wdio-runner/src/index.ts(175,46): error TS2532: Object is possibly 'undefined'.
packages/wdio-runner/src/index.ts(197,56): error TS7006: Parameter 'prev' implicitly has an 'any' type.
packages/wdio-runner/src/index.ts(197,62): error TS7006: Parameter 'browserName' implicitly has an 'any' type.
packages/wdio-runner/src/index.ts(206,56): error TS7006: Parameter 'caps' implicitly has an 'any' type.
packages/wdio-runner/src/index.ts(206,62): error TS7006: Parameter 'browserName' implicitly has an 'any' type.
packages/wdio-runner/src/index.ts(233,41): error TS2345: Argument of type 'Testrunner | undefined' is not assignable to parameter of type 'Testrunner'.
  Type 'undefined' is not assignable to type 'Testrunner'.
packages/wdio-runner/src/index.ts(288,32): error TS7006: Parameter 'command' implicitly has an 'any' type.
packages/wdio-runner/src/index.ts(296,31): error TS7006: Parameter 'result' implicitly has an 'any' type.
packages/wdio-runner/src/index.ts(441,50): error TS7006: Parameter 'i' implicitly has an 'any' type.
packages/wdio-runner/src/index.ts(460,51): error TS7006: Parameter 'browserName' implicitly has an 'any' type.
packages/wdio-runner/src/index.ts(471,50): error TS7006: Parameter 'i' implicitly has an 'any' type.
packages/wdio-sync/src/runFnInFiberContext.ts(1,30): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
packages/wdio-sync/src/wrapCommand.ts(3,59): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
packages/wdio-sync/src/wrapCommand.ts(164,53): error TS7006: Parameter 'instance' implicitly has an 'any' type.
packages/wdio-sync/src/index.ts(2,30): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
packages/wdio-appium-service/src/launcher.ts(6,35): error TS2307: Cannot find module '@wdio/config' or its corresponding type declarations.
packages/wdio-browserstack-service/src/util.ts(7,50): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
packages/wdio-browserstack-service/src/launcher.ts(9,36): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
packages/wdio-browserstack-service/src/insights-handler.ts(4,50): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
packages/wdio-browserstack-service/src/reporter.ts(5,45): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
packages/wdio-browserstack-service/src/service.ts(3,50): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
packages/wdio-browserstack-service/src/service.ts(96,48): error TS7006: Parameter 'command' implicitly has an 'any' type.
packages/wdio-browserstack-service/src/service.ts(104,47): error TS7006: Parameter 'result' implicitly has an 'any' type.
packages/wdio-browserstack-service/src/service.ts(252,18): error TS7006: Parameter 'browserName' implicitly has an 'any' type.
packages/wdio-browserstack-service/src/service.ts(299,21): error TS7006: Parameter 'browserName' implicitly has an 'any' type.
packages/wdio-browserstack-service/src/service.ts(394,23): error TS2347: Untyped function calls may not accept type arguments.
packages/wdio-crossbrowsertesting-service/src/service.ts(4,50): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
packages/wdio-cucumber-framework/src/index.ts(6,18): error TS7016: Could not find a declaration file for module 'glob'. '/Users/amaan/Documents/Work/Current_Issues/Observability/Solutioning_POC/webdriverio/webdriverio/packages/wdio-cucumber-framework/node_modules/glob/glob.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/glob` if it exists or add a new declaration (.d.ts) file containing `declare module 'glob';`
packages/wdio-devtools-service/src/utils.ts(1,50): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
packages/wdio-devtools-service/src/auditor.ts(15,54): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
packages/wdio-devtools-service/src/commands.ts(3,50): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
packages/wdio-devtools-service/src/index.ts(4,50): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
packages/wdio-local-runner/src/run.ts(3,20): error TS2307: Cannot find module '@wdio/runner' or its corresponding type declarations.
packages/wdio-sauce-service/src/service.ts(7,50): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
packages/wdio-selenium-standalone-service/src/launcher.ts(2,35): error TS2307: Cannot find module '@wdio/config' or its corresponding type declarations.
packages/wdio-shared-store-service/src/service.ts(1,25): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
packages/wdio-shared-store-service/src/service.ts(28,56): error TS2339: Property 'call' does not exist on type 'ServiceBrowser'.
packages/wdio-shared-store-service/src/service.ts(34,37): error TS2339: Property 'call' does not exist on type 'ServiceBrowser'.
packages/wdio-testingbot-service/src/service.ts(4,50): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
packages/wdio-webdriver-mock-service/src/index.ts(4,50): error TS2307: Cannot find module 'webdriverio' or its corresponding type declarations.
/Users/amaan/Documents/Work/Current_Issues/Observability/Solutioning_POC/webdriverio/webdriverio/scripts/build.js:72
    throw new Error('Failed compiling TypeScript files!')
    ^

Error: Failed compiling TypeScript files!
    at Object.<anonymous> (/Users/amaan/Documents/Work/Current_Issues/Observability/Solutioning_POC/webdriverio/webdriverio/scripts/build.js:72:11)
    at Module._compile (node:internal/modules/cjs/loader:1149:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1203:10)
    at Module.load (node:internal/modules/cjs/loader:1027:32)
    at Module._load (node:internal/modules/cjs/loader:868:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47

Node.js v18.10.0
ERROR: "compile" exited with 1.
ERROR: "build" exited with 1.

up to date, audited 3 packages in 1s

found 0 vulnerabilities
~/Documents/Work/Current_Issues/Observability/Solutioning_POC/webdriverio/webdriverio

Code of Conduct

Is there an existing issue for this?

christian-bromann commented 1 year ago

Hey, thanks for filing the issue. This was caused by a dependency update. We would appreciate any help on this so please help us out! Have a look at our contributing guidelines and reach out if you have any questions. Cheers!

sriteja777 commented 1 year ago

Hey @christian-bromann have fixed this issue in this PR. Please review

christian-bromann commented 1 year ago

Thank you @sriteja777 for taking a stab, let's continue convo in #10115