-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
NX v. 20.2.2 migration with rspack causes "throw new Error(Could not find ${fileToRun}. Make sure your build succeeded.
);"
#29388
Comments
Hey @rujorgensen Could you provide a repo with a minimal reproduction of this so i can assist you further? |
adding output: {filename: '[name].js'} to config fixes it, but for me its still producing tone of errors, thinks for 20 seconds and time to time dies with some memory problem - seems for now 20.1.4 is the only way |
Hi @Coly010, thanks for getting back, sorry for the delay--holidays and stuff 🎅. So disclaimer first: while going through the steps of reproducing this, it appears there there are generally some issues with running the @nx/rspack conversion tool, which might have led to a bad setup in the first place, but this reproduces the issue Reproduction
Convert webpack config to rspack config (manually)
const { composePlugins, withNx } = require('@nx/rspack');
module.exports = composePlugins(withNx(), (config) => config);
Cheers! |
This issue has been automatically marked as stale because no reproduction was provided within 7 days. |
Bumping because a reproduction was provided, but the label was not changed causing the issue to be marked as stale by automation. @Coly010 |
This issue has been automatically marked as stale because no reproduction was provided within 7 days. |
Bumping again because a reproduction was provided, but the label was not changed causing the issue to be marked as stale by automation. @Coly010 |
Current Behavior
Serving NestJS application with RSPack configuration, fails with "throw new Error(
Could not find ${fileToRun}. Make sure your build succeeded.
);"^
This happened after the latest NX migration to v. 20.2.2, which updates "@nx/rspack" to v. "20.2.2" too. Downgrading "@nx/rspack" to v. 20.1.4, appears to fix the issue.
Expected Behavior
I expect the app to serve like before the migration.
GitHub Repo
No response
Steps to Reproduce
nx migrate latest
, then applied the migrationnx serve backend-server
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
Running on Windows in WSL.
This is the contents of the
rspack.config.js
of the application.The text was updated successfully, but these errors were encountered: