title: Can't resolve '@ionic-native/core' in '\node_modules\@ionic-native\qr-scanner'
body: <p>I am currently working on PWA using Ionic 5 and React 17. I want to add QR code scanner to the app. I tried installing QR Scanner plugin for ionic using:</p>
  <pre class="lang-sh prettyprint-override"><code>npm install cordova-plugin-qrscanner
  npm install @ionic-native/qr-scanner
  ionic cap sync
  </code></pre>
  <p>But restarting the app shows me the following error:</p>
  <pre><code>./node_modules/@ionic-native/qr-scanner/index.js
  Module not found: Can't resolve '@ionic-native/core' in '&lt;project-folder&gt;\node_modules\@ionic-native\qr-scanner'
  </code></pre>
  <p>So far I have added only import statement into my react app</p>
  <pre class="lang-js prettyprint-override"><code>import { QRScanner } from '@ionic-native/qr-scanner';
  </code></pre>
  <p>How do I solve this?</p>