-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Karma test cases breaking in node 15.1 #3571
Comments
Our issues are related I think. |
Ya maybe @ekdev2 . But our tickets have a different error trace. |
I use node 15.2.0, and karma 5.2.3, and I also get this error. It showed up recently. |
Downgrading node to v 14.15.1 works |
We only support LTS versions. Also the call stack points to webpack. Maybe add some logging to narrow down the issue. |
@johnjbarton I see the same error on node 14.15.2. |
Amazing, a minor Node update that broke all tests. For those running Debian/Ubuntu, I've fixed that by uninstalling |
If you have a problem on node v14, please open a issue. This issue is about v15 which we do not support. |
Hi @johnjbarton I am facing same problem with node v14.15.2. Please provide us solution as soon possible. |
i also get same issue docker pipeline get error in ng test command |
Please do not comment on this bug unless your comment is about node 15. We don't support v15 so we don't plan to reopen this bug. If you have a problem with v14, please open an issue. There is a bug in node v14.15.2 that impacts webpack, #3588 |
Node v14 isn't supported on Apple Silicon. Edit: Err, at least natively. If you follow the instructions here: https://stackoverflow.com/questions/64963370/error-cannot-install-in-homebrew-on-arm-processor-in-intel-default-prefix-usr, you can run Node v14 via Rosetta and karma will run just fine:
|
@nvahalik I'm using an M1 mac book, and it works for me! Thanks!! |
I am getting below error while running npm run test: |
Hi Team,
I have node 15.1 and node 10.x. The same Karma with Angular 9 Tests work fine in node 10.x. But when it is used with node 15.1 we are getting the following error and the test breaks abruptly. There is no pattern other than the below error.
12 11 2020 12:19:28.046:ERROR [karma-server]: TypeError: Cannot read property 'range' of undefined
at handleRangeHeaders (\webpack-dev-middleware\lib\util.js:131:21)
at processRequest (\webpack-dev-middleware\lib\middleware.js:98:19)
at ready (\webpack-dev-middleware\lib\util.js:53:12)
at handleRequest (\webpack-dev-middleware\lib\util.js:182:5)
at \webpack-dev-middleware\lib\middleware.js:64:7
at new Promise ()
at middleware (\webpack-dev-middleware\lib\middleware.js:63:12)
at @angular-devkit\build-angular\src\angular-cli-files\plugins\karma.js:270:13
at call (\connect\index.js:239:7)
at next (\connect\index.js:183:5)
at \karma\lib\web-server.js:24:9
at call (\connect\index.js:239:7)
at next (\connect\index.js:183:5)
at nullProxy (\karma\lib\middleware\proxy.js:80:52)
at call (\connect\index.js:239:7)
at next (\connect\index.js:183:5)
The text was updated successfully, but these errors were encountered: