-
Notifications
You must be signed in to change notification settings - Fork 12k
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
ng test crashes on Node 14.15.2 and Node 15 #19644
Comments
👍 Awesome investigation @devoto13 As a workaround adding:
to our karma conf seems to fix the issue @alan-agius4 The issue might be more frequent than |
@cexbrayat, I think That said, we will still be looking at resolving this. |
… middleware This changes the internal Angular Karma plugin's asset fallback middleware to rewrite the request URL directly instead of trying to copy the request properties. With changes in newer Node.js versions, not all request properties may be enumerable. Fixes: angular#19644
… middleware This changes the internal Angular Karma plugin's asset fallback middleware to rewrite the request URL directly instead of trying to copy the request properties. With changes in newer Node.js versions, not all request properties may be enumerable. Fixes: angular#19644
… middleware This changes the internal Angular Karma plugin's asset fallback middleware to rewrite the request URL directly instead of trying to copy the request properties. With changes in newer Node.js versions, not all request properties may be enumerable. Fixes: #19644
… middleware This changes the internal Angular Karma plugin's asset fallback middleware to rewrite the request URL directly instead of trying to copy the request properties. With changes in newer Node.js versions, not all request properties may be enumerable. Fixes: #19644 (cherry picked from commit 0e5dab4)
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
No.
Description
Node has made a change, which was released in Node 14.15.2 and Node 15.x lines. This change caused Angular CLI Karma plugin crash (karma-runner/karma#3588) because of the behaviour change. The culprit seems to be this line. On Node 14.15.2 this code will result in a
webpackReq.headers
beingundefined
, which leads to the crash inwebpack-dev-middleware
down the callstack. From the Node issue it looks like change is going to be reverted in 14.x, but maybe not in 15.x. So I think it still makes sense to adjust Angular CLI code to be compatible with the future Node release.🔬 Minimal Reproduction
git clone git@github.com:devoto13/ng-test-crash.git
cd ng-test-crash
npm i
npm test
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: