New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webdriverio $ conflict with jquery $ #30313
Comments
Sorry for the ping, but have the authors seen this? @nmalaguti @timbru31 @daveparslow Since I'm actually not using both jquery and webdriverio at the same time, is there any way to disable the |
From a webdriver.io perspective, it is by design as it does have a global $ which is not the same as the jQuery $. This is a TypeScript question (https://github.com/Microsoft/TypeScript/) about conflicting types, but I can give pointers. Yes, It is pretty typical to have separate config for test files although you typically might want your test config to extend your base tsconfig for your project and then just exclude jQuery and use ---traceResolution with the TypesScript compile if you are not sure why jQuery is getting included. For details you can search TypeScript issues such as this one microsoft/TypeScript#22331 |
See #32490 |
This is to avoid DefinitelyTyped/DefinitelyTyped#30313. According to the TS docs: > Keep in mind that automatic inclusion is only important if you’re using files with global declarations (as opposed to files declared as modules). If you use an import "foo" statement, for instance, TypeScript may still look through node_modules & node_modules/@types folders to find the foo package.
@types/webdriverio
package and had problems.Definitions by:
inindex.d.ts
) so they can respond.Running
tsc
(npm run build
) in https://github.com/NiGhTTraX/react-cosmos-proxy-buffet:The text was updated successfully, but these errors were encountered: