Upgrade Webpack to v5 for @nrwl/cypress
See original GitHub issueDescription
Right now @nrwl/cypress using Webpack v4. But Angular is using Webpack v5. Can we upgrade to v5 for this project?
There are the required libraries:
https://github.com/tieppt/nx-micro-frontends/blob/62a0c5ab20489fc0d7bd50710fc6ae097418f137/package-lock.json#L2822-L2840
Motivation
Consistent with other libraries. And @cypress/webpack-preprocessor v5.9.1 also supported Webpack v5
Suggested Implementation
Upgrade @cypress/webpack-preprocessor to v5.9.1 and webpack to v5
Alternate Implementations
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Webpack 5 Migration - Nx
This page is for Nx 13 migration to Webpack 5, and is no longer ... We highly suggest you upgrade as soon as...
Read more >Migration Guide | Cypress Documentation
Migrating to Cypress 12.0 This guide details the changes and how to change your code to migrate to Cypress version 12.0.
Read more >To v5 from v4 - webpack
Upgrade webpack 4 and its plugins/loaders · Upgrade webpack 4 to the latest available version. · Upgrade webpack-cli to the latest available version...
Read more >Core Performance Improvements, Webpack 5, React Native ...
To opt-in to using the new daemon process, after upgrading to Nx 13, set the following environment variable to enable it. NX_DAEMON=true. Read ......
Read more >Cypress Component Testing does not use the ...
Is there another method I could add my yaml-loader to the webpack config? Thanks in advance. angular · webpack · cypress · nrwl-nx....
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 Free
Top 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

Thanks, @FrozenPandaz! @tyler-morrison yes I have. But nx/cypress using
@cypress/webpack-preprocessorv4.1.5, not v5, so this lib is not happy with Webpack 5. And nx/cypress required Webpack v4 also. So I need to explicitly install Webpack v5.Ah! I follow you now. Yes, I do believe we need to update this dependency. @FrozenPandaz would you mind re-opening this issue? I’d be happy to create a quick PR.
@tieppt in the meantime, I believe you can force Webpack v5 via the
resolutionsobject in your rootpackage.json. Yarn or NPM might throw a warning, but it should be a suitable workaround.