{"id":2033,"date":"2017-05-08T12:15:07","date_gmt":"2017-05-08T12:15:07","guid":{"rendered":"http:\/\/salientsoft.co.uk\/?p=2033"},"modified":"2018-10-10T17:15:57","modified_gmt":"2018-10-10T17:15:57","slug":"ionic-error-on-startup-ionic-error-enoent-no-such-file-or-directory","status":"publish","type":"post","link":"https:\/\/salientsoft.co.uk\/?p=2033","title":{"rendered":"Ionic error on startup &#8211; ionic Error: ENOENT: no such file or directory"},"content":{"rendered":"<p>The cause of this is not immediately obvious, but it blocked startup via <em>ionic serve &#8211; t<\/em>he error continues to cite a template error of some kind.<\/p>\n<p>The actual issue is an invalid file path on the <em>templateUrl<\/em> attribute of the <em>@Component({<\/em> decorator of the relevant component mentioned in the error. I found a variety of different file paths used \u2013 some with no path and just the filename, some with \u201c.\/\u201d on the front, and the offending one had a prefix of \u201csrc\/\u201d which caused the failure.<\/p>\n<p>Just correcting the file path on the attribute fixes the problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The cause of this is not immediately obvious, but it blocked startup via ionic serve &#8211; 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[200],"tags":[13,40,16],"_links":{"self":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2033"}],"collection":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2033"}],"version-history":[{"count":2,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2033\/revisions"}],"predecessor-version":[{"id":2169,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2033\/revisions\/2169"}],"wp:attachment":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}