Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

[karma-server]: TypeError: Cannot read property 'range' of undefined - Angular Unit Testing in CI environment

Was able to figure it out. We were using node:latest in our .gitlab-ci.yml file and whatever that was pulling down was causing an issue. (It looked to be version 15). So instead of node:latest, we set it to node:14.


It's indeed an issue with karma on node v15. Looks like (for now) it will not be fixed, so downgrading to v14 is the solution: https://github.com/karma-runner/karma/issues/3571

Tags:

Typeerror

Angular

Karma Jasmine

Gitlab Ci Runner

Related

'setter for mainClassName: String' is deprecated. Deprecated in Java Predefined type 'System.Runtime.CompilerServices.IsExternalInit' is not defined or imported Faster way for extracting and combining bits from UINT16 to UINT8 Regex to match a string like ababba etc Place two multiline TextViews with wrap_content width on both sides of the parent view org.hibernate.PropertyAccessException: Could not set field value [STRING] value by reflection for String Set a function as deprecated reCAPTCHA Unexpected token in JSON at position 0 iPhone is not available. Please reconnect the device. / iOS 14.2 - Xcode 12.1 Is it OK for a class constructor to block forever? Flutter inspector stuck on "Installing Dev tools" fs/promises api in typescript not compiling in javascript correctly

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy