-
Notifications
You must be signed in to change notification settings - Fork 390
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
npm run build
does not produce the webpack file cache
#1995
Labels
Comments
I tried to modify lib/compiler/webpack-compiler.ts and add this before
This does not work as this is not called.
This does create the cache directory and it said "webpack 5.76.2 compiled successfully" but i got the following errors:
|
I fixed it... a callback function is required for compiler.close() created a PR for this |
Let's track this here #1997 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Current behavior
webpack/webpack#12345
compiler.close() should be called somewhere.
I tried to fix it by calling compiler.close() in lib/compiler/webpack-compiler.ts but it does now work
Minimum reproduction code
https://github.com/hkjeffchan/nestjsCliWebpackCacheDemo
Steps to reproduce
npm run build
does not produce the webpack file cachenpm run start:dev
does produce the webpack file cacheExpected behavior
npm run build
should produce the webpack file cachePackage version
9.3.0
NestJS version
9.3.11
Node.js version
18.15.0
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: