-
Notifications
You must be signed in to change notification settings - Fork 12k
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 throws errors when using custom source directory #2206
Comments
I'm getting something similar when running the app:
Seems to be working despite the issues, though. |
Yes. It seems to be working despite errors. Maybe they come from tslint |
@andrewda: you can temporary add the following to src/typings.d.ts as a workaround:
|
Temporary solution that works for me is adding following declarations to typings.d.ts
|
Now I know what caused this errors. tsconfig.json generated by angular-cli is incorrect. Just fix "typeRoots" path in your projects and everything will works without errors. |
Hi @kucharzyk, What should the values of typeRoots and outDir be? Thanks! |
Hi @kucharzyk, The only issue I am seeing if the two warnings that you saw, I do not getting any errors. For reference the warnings are:
It works fine; I just as a rule try to get rid of errors and warnings as they often are results of bigger issues (even if that doesn't seem to be the case here). Thanks! |
Thanks for the investigation work @kucharzyk! #2206 (comment) does seem like a bug when we generate a project. |
Anyone working on this issue? |
…the right solution... migrate to yarn
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Karma throws errors when using custom source directory
My cli version (running under Windows 10)
Error log:
How to reproduce:
The text was updated successfully, but these errors were encountered: