Menu

Angular Tests Fail in Docker: Range Undefined Fix
📰

Angular Tests Fail in Docker: Range Undefined Fix

DEV Community: angular·Eugen Yamamoto·3 days ago
#UiE12Ygz
Long article (313 words) — no AI summary yet.
Reading 0:00
15s threshold

Hi there, today I’d like to share with you a little caveat that might result to the Angular Tests being successful on your local development machine but failing while on build server in Docker Container.

The text you might see does not give much sense about what might be causing an issue. Check it yourself:

ERROR [karma-server]: UnhandledRejection: Cannot read property 'range' of undefined

ERROR [karma-server]: TypeError: Cannot read property 'range' of undefined

at handleRangeHeaders (/app/node_modules/webpack-dev-middleware/lib/util.js:131:21)

at processRequest (/app/node_modules/webpack-dev-middleware/lib/middleware.js:98:19)

at ready (/app/node_modules/webpack-dev-middleware/lib/util.js:53:12)

at handleRequest (/app/node_modules/webpack-dev-middleware/lib/util.js:182:5)

at /app/node_modules/webpack-dev-middleware/lib/middleware.js:64:7

at new Promise (<anonymous>)

at middleware (/app/node_modules/webpack-dev-middleware/lib/middleware.js:63:12)

at…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.