@cypress/webpack-preprocessor 5.13.0 causes module error
See original GitHub issueCurrent behavior
After updating from @cypress/webpack-preprocessor 5.12.2
to version 5.13.0
this error appears
Error: Cannot find module 'md5'
Require stack:
- /Users/redacted/redacted/react-shop/node_modules/@cypress/webpack-preprocessor/dist/lib/utils.js
- /Users/redacted/redacted/react-shop/node_modules/@cypress/webpack-preprocessor/dist/index.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:955:15)
at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/Users/redacted/Library/Caches/Cypress/10.9.0/Cypress.app/Contents/Resources/app/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
at Function.Module._load (node:internal/modules/cjs/loader:803:27)
at Module.require (node:internal/modules/cjs/loader:1021:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object. (/Users/redacted/redacted/react-shop/node_modules/@cypress/webpack-preprocessor/dist/lib/utils.js:32:29)
at Module._compile (node:internal/modules/cjs/loader:1119:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
at Object.require.extensions. [as .js] (/Users/redacted/Library/Caches/Cypress/10.9.0/Cypress.app/Contents/Resources/app/node_modules/ts-node/src/index.ts:1608:43)
at Module.load (node:internal/modules/cjs/loader:997:32)
at Function.Module._load (node:internal/modules/cjs/loader:838:12)
at Module.require (node:internal/modules/cjs/loader:1021:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object. (/Users/redacted/redacted/react-shop/node_modules/@cypress/webpack-preprocessor/dist/index.js:33:31)
at Module._compile (node:internal/modules/cjs/loader:1119:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
at Object.require.extensions. [as .js] (/Users/redacted/Library/Caches/Cypress/10.9.0/Cypress.app/Contents/Resources/app/node_modules/ts-node/src/index.ts:1608:43)
at Module.load (node:internal/modules/cjs/loader:997:32)
at Function.Module._load (node:internal/modules/cjs/loader:838:12)
at ModuleWrap. (node:internal/modules/esm/translators:170:29)
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
node_modules/@cypress/webpack-preprocessor/dist/lib/utils.js:32:29
30 | var os = __importStar(require("os"));
31 | var path_1 = __importDefault(require("path"));
> 32 | var md5_1 = __importDefault(require("md5"));
| ^
33 | var bluebird_1 = __importDefault(require("bluebird"));
34 | var fs_extra_1 = __importDefault(require("fs-extra"));
35 | function createDeferred() {
36 | var resolve;
Desired behavior
Cypress should work without an issue.
Test code to reproduce
Run Cypress 10.8.0
or newer with @cypress/webpack-preprocessor 5.13.0
Cypress Version
10.8.0
Node version
v18.8.0
Operating System
macOS 12.6
Debug Logs
No response
Other
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:12
- Comments:7 (2 by maintainers)
Top Results From Across the Web
@cypress/webpack-preprocessor - npm
Start using @cypress/webpack-preprocessor in your project by running `npm i @cypress/webpack-preprocessor`. There are 51 other projects in ...
Read more >Webpack compilation error with Cypress-webpack-preprocessor
Webpack Compilation Error ./cypress/integration/features/Pagination.feature Module not found: Error: Can't resolve ...
Read more >cypress/webpack-preprocessor - npm.io
Cypress Webpack Preprocessor. Cypress preprocessor for bundling JavaScript via webpack. Installation. npm install --save-dev @cypress/webpack-preprocessor.
Read more >20.04 - Ubuntu Packages
D001-9) [universe] utility to explain system call errors ext2-modules virtual ... (0.11.1-1) [universe] ban hosts that cause multiple authentication errors ...
Read more >@cypress/webpack-preprocessor: Versions | Openbase
Full version history for @cypress/webpack-preprocessor including change logs. ... Stack traces in the Command Log originating from application errors where ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@cypress/webpack-preprocessor v5.13.1
has been released with the fix for this issue.Thanks for reporting this issue. I’ve fixed it in https://github.com/cypress-io/cypress/pull/24098 and will hopefully have a new version of
@cypress/webpack-preprocessor
out soon.