-
Notifications
You must be signed in to change notification settings - Fork 136
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
Failed: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'ng:///DynamicTestModule/module.ngfactory.js'. #262
Comments
Hey, Please see #191.
Thanks |
Generally you can check the real error if you do:
instead of
sm stands for sourcemap Sometimes even that doesn't work and you need to set a breakpoint just before the exception and execute on the browser console and you receive the real error |
NicMcPhee
added a commit
to UMM-CSci-3601/3601-lab4_mongo-pre-S20
that referenced
this issue
Feb 22, 2018
[This post](lathonez/clicker#262 (comment)) suggested that adding this flag would improve the usefulness of stack traces from failed tests, and it did!
the flag |
Try my solution: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I followed your tutorial on your blog and did not run into any errors, but when trying to replicate the steps in my current project I am.
When trying to setup the most basic test for home.ts
using the basic test laid out on your blog post
I receive the error
Failed: Uncaught (in promise): Error: No provider for UserProvider!
In my attempts to troubleshoot I included the testbed config inline in my test to add UserProvider to the list of providers.
Having done this I now receive the error
Failed: Uncaught (in promise): Error: No provider for DomController!
and so I add that to the list of providers in the same way I did withUserProvider
.Following this I end up with the error
Failed: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'ng:///DynamicTestModule/module.ngfactory.js'.
I've redone these steps with minor differences here and there, but I always end up with the same error at the end. I'm not sure if I should be stubbing/mocking these components or services or if I'm completely off trail.
I'm very new to Angular, Jasmine, and testing in general. Any help offered would be much appreciated.
The text was updated successfully, but these errors were encountered: