-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
cypress 9.1.0 depends on deprecated 'har-validator', this is reported on Node 17 #19102
Comments
We are seeing the same issue, tried lower versions of Cypress down to 7.1 and they are all having the same issue. |
Dependency was dropped in https://www.npmjs.com/package/@cypress/request/v/2.88.7 This is what's causing this issue |
facing the same issue |
Same issue here with Cypress |
@jennifer-shehane without this we cant open cypress fyi .. please help |
Same issue with version |
@Arunk28 run |
Hello folks, I am also facing this issue. |
I also have the same issue today :) workaround is like @davidsneighbour said. |
Same issue. Proposed workaround seems to solve it for now. |
Same issue. thanks @davidsneighbour for workaround |
Same here, on macOS Monterey 12.0.1 as well as Ubuntu 18 on github actions. |
Just include har-validator as a dependency in package.json until a proper solution is suggested "dependencies": { |
Funny this is a testing library... |
I meant har-validator ;p - npm says so https://www.npmjs.com/package/har-validator |
Still getting |
Is there an unofficial version of har-validator? |
This is why it was eliminated. A fix for this issue is on the way, please check the latest issue mention just above this. |
This is also appears to be indirectly erroring out in the https://github.com/upptime/upptime project during the Static Site CI build. |
Same issue with Cypress 6.0.1 |
Same here: package.json => "cypress": "^8.6.0", har-validator is reported as deprecated in npm site => https://www.npmjs.com/package/har-validator |
Same here with Cypress 8.7.0 |
Can confirm this happens all the way down to even on |
if you can check -- > npm i |
Very Active Cypress team, thank you for the speedy workaround suggested. |
Expected, and the reason why it was eliminated in the first place. |
Our integration test suite broke this morning for the same reason. "devDependencies": { |
Workaround does help! |
Same with Cypress 7.7.0. Add "har-validator": "^5.1.5" to devDependencies solve it for know... Question: When Cypress solve this problem, we must upgrade our Cypress package to the latest release, like 9.2.0 ?? for example ??? Thanks |
- stylelint formatting changes - fix for cypress issue with 'har-validator' (cypress-io/cypress#19102)
…ss works as expected Related issue: cypress-io/cypress#19102
- stylelint formatting changes - fix for cypress issue with 'har-validator' (cypress-io/cypress#19102) - dead links check adaption
Not really. It's an upstream dependency, |
[cypress 9.1.0 depends on deprecated 'har-validator', this is reported on Node 17 · Issue #19102 · cypress-io/cypress](cypress-io/cypress#19102)
The code for this is done in cypress-io/cypress#19099, but has yet to be released. |
🎉 This issue has been resolved in version 2.88.10 🎉 The release is available on: |
- stylelint formatting changes - fix for cypress issue with 'har-validator' (cypress-io/cypress#19102) - dead links check adaption
* pinned "@types/lodash": "4.14.191", since version 4.14.192 results in error "cypress-ci-e2e.ts(88,46): error TS2769: No overload matches this call." * removed now obsolete 'har-validator' (see cypress-io/cypress#19102) * added package-lock.json to woked with a pinned dependencies set for e2e tests as well
* pinned "@types/lodash": "4.14.191", since version 4.14.192 results in error "cypress-ci-e2e.ts(88,46): error TS2769: No overload matches this call." * removed now obsolete 'har-validator' (see cypress-io/cypress#19102) * added package-lock.json to woked with a pinned dependencies set for e2e tests as well
* pinned "@types/lodash": "4.14.191", since version 4.14.192 results in error "cypress-ci-e2e.ts(88,46): error TS2769: No overload matches this call." * removed now obsolete 'har-validator' (see cypress-io/cypress#19102) * added package-lock.json to woked with a pinned dependencies set for e2e tests as well
Current behavior
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module 'har-validator'
Require stack:
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (G:\DWork\angular\angular-coffee-shop\node_modules@cypress\request\lib\har.js:5:16)
at Module._compile (node:internal/modules/cjs/loader:1095:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1147:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (G:\DWork\angular\angular-coffee-shop\node_modules@cypress\request\request.js:23:11)
at Module._compile (node:internal/modules/cjs/loader:1095:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1147:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'G:\DWork\angular\angular-coffee-shop\node_modules\@cypress\request\lib\har.js',
'G:\DWork\angular\angular-coffee-shop\node_modules\@cypress\request\request.js',
'G:\DWork\angular\angular-coffee-shop\node_modules\@cypress\request\index.js',
'G:\DWork\angular\angular-coffee-shop\node_modules\cypress\lib\tasks\download.js',
'G:\DWork\angular\angular-coffee-shop\node_modules\cypress\lib\tasks\install.js',
'G:\DWork\angular\angular-coffee-shop\node_modules\cypress\index.js'
]
}
Node.js v17.0.1
Debug logs
No response
Cypress Version
9.1.0
Package Manager
npm
Operating system
Windows
Other
No response
The text was updated successfully, but these errors were encountered: