(Closed) BannerComponent (templateUrl) no title in the DOM until manually call detectChanges
gmunumel opened this issue · 5 comments
Hello guys. I have been following the tutorial for testing banner component using templateUrl. Download the zip code and run it, but got the following error:
WARN [web-server]: 404: /app/banner.component.html
Chrome 57.0.2987 (Mac OS X 10.11.6) BannerComponent (templateUrl) no title in the DOM until manually call `detectChanges` FAILED
Failed: Uncaught (in promise): Failed to load app/banner.component.html
Error: Uncaught (in promise): Failed to load app/banner.component.html
Error: This test module uses the component BannerComponent which is using a "templateUrl" or "styleUrls", but they were never compiled. Please call "TestBed.compileComponents" before your test.
TypeError: Cannot read property 'textContent' of undefined
Chrome 57.0.2987 (Mac OS X 10.11.6): Executed 1 of 3 (1 FAILED) (0 secs / 0.063 secs)
The zip code is here. I haven't changed the code, just run npm test. Also if I run the npm start got a Cannot GET / error. I also opened a ticket in stackoverflow.
Really looking forward to solve this issue because I'd like to test a new project I've just started.
Thanks for the good work in the tutorial :)
Cheers.
Update: also see the same behaviour in windows.
We need to go live again and it should be fixed.
What do you mean. We need to wait for a new version?
Sorry my ignorance.
We make fixes on master and time to time we put those changes into the page. It should be updated today.
Thanks mate. Will keep an eye on it.
Great work 👍
The latest version of system-angular-loader.js made the trick.
This should be close. ;)