title: Typerror is not a constructor
body: <p>I´ve this error on my code</p>
  
  <p>Typerror: ProjectRepository is not a constructor
      at main.....</p>
  
  <p>This is the code from main.js</p>
  
  <pre><code>const Promise = require('bluebird')
  const AppDAO = require('./dao')
  const ProjectRepository = require('./project_repository')
  const TaskRepository = require('./task_repository')
  
  function main() {
  
  const dao = new AppDAO('./database.sqlite3')
  const blogProjectData = {name: 'Write Node.js - SQLite Tutorial'}
  const projectRepo = new ProjectRepository(dao)
  const taskRepo = new TaskRepository(dao)
  let projectId
  </code></pre>
  
  <p>This is project_repository.js class with the constructor</p>
  
  <pre><code>class ProjectRepository{
      constructor(dao){
          this.dao = dao
      }
  </code></pre>
  
  <p>It's very simple but I´ve no idea why it´s failing.</p>