Property does not exist on type
<p>I am working on a project with Ionic2 and Angular2. When trying to run <code>ionic serve</code>, the data is retrieved without any errors. However, when trying to test on ios and running <code>ionic build ios</code>, I am getting the below compile time errors, that properties do not exist.</p>

<p>Has anyone else encountered this issue? </p>

<p>I appreciate any suggestions. </p>

<p>home.ts</p>

<pre><code>import { Component } from '@angular/core';
import { ProfileService } from './profile.service';

@Component({
    selector: 'home',
    templateUrl: 'home.html',
    providers: [ProfileService]
})
export class HomePage {

    constructor(public d: HomeService){
        this.loadData();
    }

    loadData() {
     this.d.fbPromise.then( (FB) =&gt;    this.data.getData(FB)).then(response =&gt; {
         this.data = response;
     });
   }
}
</code></pre>

<p>home.html</p>

<pre><code>&lt;ion-header&gt;
    &lt;ion-navbar&gt;
        &lt;ion-title&gt;Home&lt;/ion-title&gt;
    &lt;/ion-navbar&gt;
&lt;/ion-header&gt;

&lt;ion-content&gt;

    &lt;div class="profile-content" padding&gt;
        &lt;div class="content-header"&gt;
            &lt;h2 class="name"&gt;{{ this.data.name }}&lt;/h2&gt;


        &lt;div class="interests-content"&gt;
            &lt;h3&gt;interests&lt;/h3&gt;

            &lt;span *ngFor="let interest of this.data.interests" &gt;
                {{ interest.title }} : {{interest.name}}
            &lt;/span&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/ion-content&gt;
</code></pre>

<p>Compile Time Errors:</p>

<pre><code>[10:10:18]  Error: Error at /Users/zzz/Sites/angular-app/Flah/.tmp/pages/home/home.ngfactory.ts:330:47 
[10:10:18]  Property 'name' does not exist on type 'HomeService'. 
[10:10:18]  Error at /Users/zzz/Sites/angular-app/Flah/.tmp/pages/home/profhomeile.ngfactory.ts:349:72 
[10:10:18]  Error at /Users/zzz/Sites/angular-app/Flah/.tmp/pages/home/phomerofile.ngfactory.ts:354:72 
[10:10:18]  Property 'interests' does not exist on type 'HomeService'. 
[10:10:18]  ngc failed 
[10:10:18]  ionic-app-script task: "build" 
[10:10:18]  Error: Error 
</code></pre>