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
However, if the check is disabled (tested via modifying the node_modules directory), the cypress component test runs without issue.
Granted, the nx repo still has a dependency on webpack, but it appears that using rspack as the executor does not cause an issue (and therefore, shouldn't throw an error).
Expected Behavior
For buildTargetWebpack, @nx/webpack:webpack or @nx/rspack:rspack can be used as the executor.
GitHub Repo
No response
Steps to Reproduce
Have an existing webpack react application with cypress component tests
Move application to rspack
Open cypress for the app (for this example, I just used npx cypress open in the app folder in question)
150 |if (buildableProjectConfig.targets[parsed.target].executor !==
151 |'@nx/webpack:webpack') {
> 152 | throw new InvalidExecutorError(`The '${parsed.target}' target of the '${parsed.project}' project is not using the '@nx/webpack:webpack' executor. ` +
| ^
153 |`Please make sure to use '@nx/webpack:webpack' executor in that target to use Cypress Component Testing.`);
154 | }
155 | const context = (0, ct_helpers_1.createExecutorContext)(graph, buildableProjectConfig.targets, parsed.project, parsed.target, parsed.target);
156 | const { normalizeOptions, } = require('@nx/webpack/src/executors/webpack/lib/normalize-options');
Package Manager Version
No response
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Current Behavior
When trying to migrate an existing webpack cypress component test to use the rspack executor, it throws an error due to this check
nx/packages/react/plugins/component-testing/index.ts
Lines 239 to 240 in 04bd26f
However, if the check is disabled (tested via modifying the node_modules directory), the cypress component test runs without issue.
Granted, the nx repo still has a dependency on webpack, but it appears that using rspack as the executor does not cause an issue (and therefore, shouldn't throw an error).
Expected Behavior
For buildTargetWebpack, @nx/webpack:webpack or @nx/rspack:rspack can be used as the executor.
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: