title: Angular2 - Cannot set property 'stack' of undefined
body: <p>I have issue with angular2, when I had created service, and attached it into <code>appModule</code> to <code>providers:[]</code> section, I had error:</p>
  
  <pre><code>Uncaught TypeError: Cannot set property 'stack' of undefined
      at SyntaxError.set [as stack] (eval at &lt;anonymous&gt; (http://localhost:8080/vendor.js:94:2), &lt;anonymous&gt;:1628:63)
      at assignAll (eval at &lt;anonymous&gt; (http://localhost:8080/polyfills.js:2217:2), &lt;anonymous&gt;:704:29)
  </code></pre>
  
  <p>I have done two apps and I havent meet with similar error before...
  This is my simple service file:</p>
  
  <pre><code>Injectable()
  export class RecordService {
  
      private API_END_POINT: string = 'app/records';
      private API = process.env.API_END_POINT;
  
      constructor(private http: Http ) {
  
      }
  
      getRecords(): Observable&lt;any&gt; {
          return this.http
              .get( this.API_END_POINT )
              .map( (res:Response) =&gt; res.json().data as RecordModel )
              .catch(this.handleError);
  
      }
  
      private handleError(error: any): Promise&lt;any&gt; {
          console.error('An error occurred', error);
          return Promise.reject(error.message || error);
      }
  
  }
  </code></pre>
  
  <p>I have no idea how to fix that, there is no any information about this err nowhere... Please for help!</p>