-
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
UnhandledRejection: Cannot read property 'range' of undefined #3588
Comments
I don't think this issue is in Karma core. From #3571 it looks like the issue is in the
In any case, there is nothing we can do on the Karma core to fix issue in the third-party plugin as we don't develop this plugin. Happy to re-open if you provide a minimal reproduction showing that this issue is caused by the Karma core. |
FWIW I tested locally against 14.15.1 and 14.15.2 so any issue between these versions isn't visible to our tests. |
Unfortunately I have the same issue in my test project. Tests work on NodeJS 14.15.1, but fails on 14.15.2 with exception:
|
@tbprojects Open up
Add a line above:
The message should include the stack and that will help us. |
@tbprojects Thanks! I'm able to reproduce it using your repository. For some reason it does not reproduce in my freshly-generated Angular CLI 11 project. I'll check what is different tomorrow and post back. |
|
Likely caused by nodejs/node#36550 |
Thanks for the link @wvankuipers. It is indeed a change in behaviour in Node, which lead to a crash of Angular CLI (because of this line). It looks like Node is going to revert this change in LTS line. So below is the information for people experiencing this issue:
|
@johnjbarton I think we should keep this pinned until fix is released in the next Node version, so people can easily find it and don't open new issues about the same problem. |
Ok thanks. Did not know this pinned thing ;-) |
|
v 14.15.3 is released https://nodejs.org/en/download/ |
still happening on v14.15.3 |
@rattkin I can't reproduce on Node 14.15.3 using test project from #3588 (comment). Please double check that you use the mentioned Node version and provide the minimal project producing the error if you still believe that this is a bug. |
@devoto13 I upgraded Triton to latest and it is fixed now. Sorry for mistake, the environment that had the problem was not on 14.15.3. |
Same issue appeared again starting from node v15.0.0 |
@TeaTimeForever Make sure you use the Angular CLI version, where the fix is included. |
downgrading from node v15 to v14.16.0 helped, tests are working now |
"UnhandledRejection" because Karma Runner is not compatible with Node Version 15. You have to downgrade your node version below or equal to 14. Karma Runner Open Issue - #3571 |
Karma version 5.2.3
Node version 14.15.2
After running the tests Chrome exits and I get the following error:
I suspect this to be related to #3571, node version 14.15.1 works correctly.
Please let me know if I need to provide more information.
The text was updated successfully, but these errors were encountered: