TS2339: Property 'checkLocalizedLoginError' does not exist on type 'Browser' - webdriver-io

I added a custom command on WebdriverIO like this:
wdio.conf.ts
wdio.conf.ts
wdio.d.ts:
wdio.d.ts
tsconfig.json
tsconfig.json
And it seems, that Typescript doesn't recognize this command somehow, and I get such a typescript error:
Property 'checkLocalizedLoginError' does not exist on type 'Browser'.
Can someone help me, please?

Related

SonarScanner CLI error: check sonar.projectKey and sonar.organization properties, SONAR_TOKEN variable

When using SonarScanner, following the suggested manual recipe for classic .NET and MSBuild - so all required properties and variable are passed to the CLI tool - I find the following error at the bottom lines:
ERROR: Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator.
What's wrong? How to resolve this?

NestJs problem using external package methods

I've installed in my NestJs project a MIME library https://www.npmjs.com/package/mime
(this is a row in my package.json "mime": "^2.5.2").
I've imported this package in my code in this way:
import * as mime from 'mime';
and use some methods like this:
mime.getType(file.name),
in the console, it prints me this error:
ERROR in .....facade_folder/facade.service.ts(93,38):
TS2339: Property 'getType' does not exist on type 'typeof import("..../node_modules/#types/mime/index")'.
But the strange thing is that the code runs and works, in fact in my DB I have the correct mime type stored:
I can leave these errors as they are, but I want to understand what is wrong with this usage, as I follow all the library directions apparently.
I've already tried to delete dist and node_modules folder, npm i, clean cache and run all over again.
Thanks so much.

Webpack: module build failed

I am running npm run dev with this simple app.js:
//import {JetApp, EmptyRouter, HashRouter } from "webix-jet";
import {JetApp} from "webix-jet/dist/es6/jet";
I am getting this error - not sure what i'm missing.
Module build failed: Module not found:
"./assets/app.js" contains a reference to the file "webix-jet/dist/es6/jet".
This file can not be found, please check it for typos or update it if the file got moved.
I've added webix and webix-jet via npm and I can see their sources/dist under node_modules
Thoughts?
First, normally you code must look like
import {JetApp} from "webix-jet";
so you need to import just from webix-jet module, there is no need to define exact file ( be sure that you have webix-jet as dependency in the package.json )
Also, this line ./assets/app.js" looks strange as well, as app.js is expected to be in the "src" folder, not in the "assets"

Property 'config' does not exist on type 'BrowserObject' in Webdriver.io

I'm using webdirevio to make some tests, and I'd like to access the configs from the tests as described here:
https://webdriver.io/docs/browserobject.html
But when I write browser.config in my tests I get the error in the title.
Edit:
As requested in the comments, wdio version is 5.12.4.
I'm using cucumber.js so I put console.log(browser.config) in my steps but even the IDE (Webstorm) doesn't recognize it
and if I continue to run the test I get the error in the log
ERROR #wdio/runner: TSError: тип Unable to compile TypeScript:
tests/features/step_definitions/steps.ts(84,25): error TS2339: Property 'config' does not exist on type 'BrowserObject'.
This was an issue in webdriver.io.
It was fixed in commit https://github.com/webdriverio/webdriverio/commit/29690864b30efd163c1c82bc28ac124d7948e519
Fix will be present in v5.15.6

Libraries installed but didn't work in react-native environment

Anytime I install Library, whether it is, native base or react-native text-input effects.it gives the same error every time..
I don't know what's causing an issue here.
error: bundling failed: Error: While trying to resolve module
native-base` from file `/home/jas/Hopper/screen/Home.js`, the package `
/home/jas/Hopper /node_modules/native-base/package.json` was successfully
found. However, this package itself specifies a `main` module field that
could not be resolved (`/home/jas/Hopper/node_modules/native-base/dist
/src/index.js`. Indeed, none of these files exist:
Delete the build folder in /node_modules/native-base/android/app