May 8th, 2017
12:15 pm
Posted under Ionic
Permalink
Tags Bug, Gotcha, Tip
The cause of this is not immediately obvious, but it blocked startup via ionic serve – the error continues to cite a template error of some kind.
The actual issue is an invalid file path on the templateUrl attribute of the @Component({ decorator of the relevant component mentioned in the error. I found a variety of different file paths used – some with no path and just the filename, some with “./” on the front, and the offending one had a prefix of “src/” which caused the failure.
Just correcting the file path on the attribute fixes the problem.
Leave a Reply
You must be logged in to post a comment.