-
Notifications
You must be signed in to change notification settings - Fork 12k
ng test "Cannot find source file" for npm dependencies #2364
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
Comments
Potentially a duplicate of #2359 |
Warnings about You should create an issue in akserg/ng2-slim-loading-bar for request of adding typescript files or improving source maps. |
Thanks @dzonatan, I will try this! But why does |
Good question. I think the answer is hiding somewhere in webpack configuration since test and serve/build have different configs. Anyway they're just warnings and your tests should pass. |
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. |
OS X El Capitan
ng --version
. If there's nothing outputted, please runin a Terminal:
node --version
and paste the result here:do on your code? etc.
ng new demo
app.component.spec.ts
to import from library (e.g.import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
)ng test
more information.
I assume this has something to do with the way test.ts loads libraries/sets up the karma environment. Not sure where to start looking for a fix though.
The text was updated successfully, but these errors were encountered: