-
Notifications
You must be signed in to change notification settings - Fork 25.5k
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
Testing: misleading error message when don't call compileComponents
#11301
Comments
compileComponents
compileComponents
@wardbell @tbosch I am having same misleading error with template urls and stylesUrl set with webpack. Even tutorials say, I don't have to call compile components because webpack compiles it. But it doesn't make any difference. If I change to inline templates and styles, it works ok though. |
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. |
I'm submitting a ... (check one with "x")
Current behavior
Component doesn't have a templateUrl but DOES have styleUrls.
When don't call
TestBed.compileComponents
the error message isThis is ALMOST correct. The problem is that it is the styleUrls that cause the problem, not the (non-existent) templateUrl
Expected/desired behavior
Could say
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: