angular.io icon indicating copy to clipboard operation
angular.io copied to clipboard

(Closed) BannerComponent (templateUrl) no title in the DOM until manually call detectChanges

Open gmunumel opened this issue 9 years ago • 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.

gmunumel avatar Apr 09 '17 09:04 gmunumel

We need to go live again and it should be fixed.

Foxandxss avatar Apr 10 '17 15:04 Foxandxss

What do you mean. We need to wait for a new version?

Sorry my ignorance.

gmunumel avatar Apr 10 '17 18:04 gmunumel

We make fixes on master and time to time we put those changes into the page. It should be updated today.

Foxandxss avatar Apr 10 '17 18:04 Foxandxss

Thanks mate. Will keep an eye on it.

Great work 👍

gmunumel avatar Apr 10 '17 19:04 gmunumel

The latest version of system-angular-loader.js made the trick.

This should be close. ;)

gmunumel avatar Apr 12 '17 18:04 gmunumel