title: Run time error fs.readdirSync is not a function
body: <p>I want to develop an e-commerce mobile app using rest API of Shopify and ionic 2. I am using nodejs package <a href="https://www.npmjs.com/package/shopify-api-node" rel="nofollow noreferrer"><strong>shopify-api-node</strong></a> for the rest API of Shopify. I installed this package using <code>$ npm install --save shopify-api-node</code> in ionic 2 but when I run this app on the browser using <code>ionic serve</code> it throws error like this</p>
  
  <blockquote>
    <p>Run time error  fs.readdirSync is not a function. </p>
  </blockquote>
  
  <pre><code>import { Component } from '@angular/core';
  import { NavController } from 'ionic-angular';
  import * as Shop from 'shopify-api-node';
  
  @Component({
    selector: 'page-home',
    templateUrl: 'home.html'
  })
  export class HomePage {
  
      Shopify: any;
  
    constructor(public navCtrl: NavController) {
  
      this.Shopify = Shop({
  
        shopName: 'shopionic.myshopify.com',
        apiKey: '8b5656da6e30449007471c02a601f799',
        password: '6bf651769f403b0efdefa482c1750bc4'
  
      });
  
      this.Shopify.order.list({ limit: 5 })
      .then(orders =&gt; console.log(orders))
    .catch(err =&gt; console.error(err));
  
    }
  
  }
  </code></pre>