title: TypeError: pouchdb_1.default is not a constructor
body: <p>I've used PouchDB on browser based projects before and everything was alright, but on a new node project I get this error no matter how I import the module</p>
  
  <p>Pouchdb 6.3.4 + @types/pouchdb</p>
  
  <pre><code>import PouchDB from 'pouchdb';
  this.userDB = new PouchDB('db');
  //TypeError: pouchdb_1.default is not a constructor
  </code></pre>
  
  <p>Resulting code:</p>
  
  <pre><code>"use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  const pouchdb_1 = require("pouchdb");
  this.userDB = new pouchdb_1.default('db')
  </code></pre>
  
  <p>I've tried to import in all possible ways (import =, const =, import * as, import { })</p>
  
  <p><strong>THE ANSWER (thanks to Mustansir Zia)</strong></p>
  
  <pre><code>const PouchDB = require('pouchdb');
  </code></pre>