Skip to content
This repository has been archived by the owner on Dec 4, 2017. It is now read-only.

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

Open
gmunumel opened this issue Apr 9, 2017 · 5 comments

Comments

@gmunumel
Copy link

gmunumel commented Apr 9, 2017

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.

@Foxandxss
Copy link
Member

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

@gmunumel
Copy link
Author

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

Sorry my ignorance.

@Foxandxss
Copy link
Member

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

@gmunumel
Copy link
Author

Thanks mate. Will keep an eye on it.

Great work 👍

@gmunumel
Copy link
Author

gmunumel commented Apr 12, 2017

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

This should be close. ;)

@gmunumel gmunumel changed the title BannerComponent (templateUrl) no title in the DOM until manually call detectChanges (Close) BannerComponent (templateUrl) no title in the DOM until manually call detectChanges Apr 12, 2017
@gmunumel gmunumel changed the title (Close) BannerComponent (templateUrl) no title in the DOM until manually call detectChanges (Closed) BannerComponent (templateUrl) no title in the DOM until manually call detectChanges Apr 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants