Skip to content
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 error after update to version 6.0.0 #3619

Closed
SymbioticKilla opened this issue Jan 14, 2021 · 6 comments
Closed

Karma error after update to version 6.0.0 #3619

SymbioticKilla opened this issue Jan 14, 2021 · 6 comments

Comments

@SymbioticKilla
Copy link
Contributor

Hi,

I get following error after update:

ERROR [karma-server]: Server start failed on port 9876: Error: No provider for "customFileHandlers"! (Resolving: framework:@angular-devkit/build-angular -> customFileHandlers)   
ERROR [karma-server]: Error while calling exit event listeners
TypeError: Cannot read property 'name' of undefined
    at TfsReporter.onExit (C:\Dev\***\spa\node_modules\karma-tfs-reporter\index.js:53:38)
    at Server.<anonymous> (C:\Dev\***\spa\node_modules\karma\lib\events.js:40:26)
    at Server.emit (events.js:327:22)
    at Server.emitExitAsync (C:\Dev\***\spa\node_modules\karma\lib\server.js:146:12)
    at Server._close (C:\Dev\***\spa\node_modules\karma\lib\server.js:413:10)
    at Server.start (C:\Dev\***\spa\node_modules\karma\lib\server.js:120:12)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

@alecgibson
Copy link

alecgibson commented Jan 14, 2021

This is probably a karma-webpack issue: codymikol/karma-webpack#462

(Sorry skim-read the stack)

@devoto13
Copy link
Collaborator

Note that 6.0.0 is a major release, which has breaking changes. It is not compatible with the current release of @angular-devkit/build-angular package, hence the error. You should have received a warning about incompatible peer dependency from NPM when you updated to it.

The support for Karma 6.0.0 has already been added to Angular CLI (angular/angular-cli#19784) and will probably be released in 11.1.0. Until then, please stick with Karma 5.x.

@devoto13 devoto13 pinned this issue Jan 14, 2021
@SymbioticKilla
Copy link
Contributor Author

@devoto13 Thanks! Will it be back ported to 10.2?

@devoto13
Copy link
Collaborator

I don’t think so. AFAIK only critical fixes get backported.

@SymbioticKilla
Copy link
Contributor Author

SymbioticKilla commented Jan 15, 2021

@devoto13 =( Is it possible to back port CVE Fixes to Karma 5 then?

@devoto13
Copy link
Collaborator

Unfortunately we don't have a process to backport changes at the moment... I guess we can either try to make a patch release on 5.x branch or restore customFileHandlers provider with the deprecation warning on the 6.x branch (so people can use Karma 6.x with older Angular CLI with the peer dependency warning).

@johnjbarton Which option do you think is better?

devoto13 added a commit to devoto13/karma that referenced this issue Jan 19, 2021
The removal of `customFileHandlers` turned out to be more disruptive change than anticipated as this provider is still used by several popular plugins: karma-runner#3619, codymikol/karma-webpack#462, angular/angular-cli#19815. Hence we restore the provider and print a deprecation warning to make upgrading easier. This should give more time for the plugin authors to release new versions and users to adopt these versions.
devoto13 added a commit to devoto13/karma that referenced this issue Jan 19, 2021
The removal of `customFileHandlers` turned out to be more disruptive change than anticipated as this provider is still used by several popular plugins: karma-runner#3619, codymikol/karma-webpack#462, angular/angular-cli#19815. Hence we restore the provider and print a deprecation warning to make upgrading easier. This should give more time for the plugin authors to release new versions and users to adopt these versions.
devoto13 added a commit to devoto13/karma that referenced this issue Jan 19, 2021
The removal of `customFileHandlers` turned out to be more disruptive change than anticipated as this provider is still used by several popular plugins: karma-runner#3619, codymikol/karma-webpack#462, angular/angular-cli#19815. Hence we restore the provider and print a deprecation warning to make upgrading easier. This should give more time for the plugin authors to release new versions and users to adopt these versions.
devoto13 added a commit to devoto13/karma that referenced this issue Jan 20, 2021
The removal of `customFileHandlers` turned out to be more disruptive change than anticipated as this provider is still used by several popular plugins: karma-runner#3619, codymikol/karma-webpack#462, angular/angular-cli#19815. Hence we restore the provider and print a deprecation warning to make upgrading easier. This should give more time for the plugin authors to release new versions and users to adopt these versions.
johnjbarton pushed a commit that referenced this issue Jan 20, 2021
The removal of `customFileHandlers` turned out to be more disruptive change than anticipated as this provider is still used by several popular plugins: #3619, codymikol/karma-webpack#462, angular/angular-cli#19815. Hence we restore the provider and print a deprecation warning to make upgrading easier. This should give more time for the plugin authors to release new versions and users to adopt these versions.
@devoto13 devoto13 unpinned this issue Feb 2, 2021
anthony-redFox pushed a commit to anthony-redFox/karma that referenced this issue May 16, 2023
The removal of `customFileHandlers` turned out to be more disruptive change than anticipated as this provider is still used by several popular plugins: karma-runner#3619, codymikol/karma-webpack#462, angular/angular-cli#19815. Hence we restore the provider and print a deprecation warning to make upgrading easier. This should give more time for the plugin authors to release new versions and users to adopt these versions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants