You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I use this package in a Cypress cy.task to simply unzip.
After the 0.5.10 version the following code has an issue:
Cannot read properties of undefined (reading 'split')
at ./node_modules/adm-zip/methods/inflater.js (webpack:///./node_modules/adm-zip/methods/inflater.js:1:44)
at __webpack_require__ (webpack:///webpack/bootstrap:19:0)
at ./node_modules/adm-zip/methods/index.js (webpack:///./node_modules/adm-zip/methods/index.js:2:0)
at __webpack_require__ (webpack:///webpack/bootstrap:19:0)
at ./node_modules/adm-zip/zipEntry.js (webpack:///./node_modules/adm-zip/zipEntry.js:4:14)
at __webpack_require__ (webpack:///webpack/bootstrap:19:0)
at ./node_modules/adm-zip/adm-zip.js (webpack:///./node_modules/adm-zip/adm-zip.js:3:17)
at __webpack_require__ (webpack:///webpack/bootstrap:19:0)
Tracing it this code has the issue:
const version = +(process.versions ? process.versions.node : "").split(".")[0] || 0;
The process.versions is empty somehow in my case, so the process.versions.node is undefined.
The text was updated successfully, but these errors were encountered:
Hi, I use this package in a Cypress cy.task to simply unzip.
After the 0.5.10 version the following code has an issue:
The process.versions is empty somehow in my case, so the process.versions.node is undefined.
The text was updated successfully, but these errors were encountered: