chart.js:4 Uncaught ReferenceError: require is not defined in ionic 2
<p>I am trying to use the basic example of NG2-Charts (<a href="http://valor-software.com/ng2-charts/" rel="nofollow">http://valor-software.com/ng2-charts/</a>)</p>

<p>In its github repo (<a href="https://github.com/valor-software/ng2-charts" rel="nofollow">https://github.com/valor-software/ng2-charts</a>) it is mentioned that:</p>

<blockquote>
  <p>Important: Embedding Chart.js in application is mandatory!</p>
</blockquote>

<pre><code>&lt;script src="node_modules/chart.js/src/chart.js"&gt;&lt;/script&gt;
</code></pre>

<p>But when I am embedding this script It is showing an error </p>

<blockquote>
  <p>chart.js:4 Uncaught ReferenceError: require is not defined</p>
</blockquote>

<p>Does anyone has an idea on how to fix that? Thank you</p>