This repository was archived by the owner on Dec 4, 2017. It is now read-only.
This repository was 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
Description
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.
Metadata
Metadata
Assignees
Labels
No labels