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

Is karma-typescript compatible with Angular 13+ ? #589

Open
art-alexeyenko opened this issue Dec 21, 2022 · 0 comments
Open

Is karma-typescript compatible with Angular 13+ ? #589

art-alexeyenko opened this issue Dec 21, 2022 · 0 comments

Comments

@art-alexeyenko
Copy link

Angular 13 and up only compiles into ES modules, and it looks like karma-typescript uses CJS.
When trying to run unit tests on v13 angular library I get a variety of issues, one of which is

TypeError: core_1.InjectionToken is not a constructor

when processing an import from angular/core

import { InjectionToken, Type } from '@angular/core';

The latest version release has been before v13 release - if karma-typescript has no support for it, are there any plans for it?

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

1 participant