title: Code: 'MODULE_NOT_FOUND', requireStack[] node.js
body: <p>I'm busy with a project which creates a puppy database table in MySQL Workbench. It also makes use of WAMP server. I've created the puppy module as well as the puppy seeder. I have tried to run 'node seed.js' in the terminal in VS Code however I get the following error:</p>
  <pre><code>Error: Cannot find module 'C:\Users\PaigeF\OneDrive - (company name here which I have removed intetionally)\Desktop\Sequelize-Pet-App\seed.js'
      at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
      at Function.Module._load (internal/modules/cjs/loader.js:725:27)
      at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
      at internal/main/run_main_module.js:17:47 {
    code: 'MODULE_NOT_FOUND',
    requireStack: []
  }
  </code></pre>
  <p>Here is my Puppy.model.js code:</p>
  <pre><code>const { DataTypes, Model } = require('sequelize');
  
  class Puppy extends Model { }
  
  Puppy.init({
      id: {
          type: DataTypes.INTEGER,
          primaryKey: true,
          autoIncrement: true,
          allowNull: false,
      },
      name: {
          type: DataTypes.STRING,
          allowNull: false,
          unique: true,
      },
      age: {
          type: DataTypes.INTEGER,
          allowNull: false,
      },
      favFood: {
          type: DataTypes.STRING,
          allowNull: true,
      },
  },
      {
          sequelize,
          tableName: 'puppies',
          modelName: 'Puppy',
      });
  
  model.exports = Puppy;
  </code></pre>
  <p>Here is my puppy.test.seeder.js code:</p>
  <pre><code>module.exports.seed = async () =&gt; {
      const Puppy = require('./puppy.model');
      Puppy.sequelize.sync();
  }
  </code></pre>
  <p>And finally here is my seed.js code:</p>
  <pre><code>require('./Library/connection');
  const Puppy = require('./modules/puppy.test.seeder');
  
  seed();
  async function seed() {
      console.log('Seeding Completed');
      process.exit();
  }
  </code></pre>
  <p>I know this might not be the best/most efficient way, however, this is the layout that my company wants me to use.</p>
  <p>Thanks for all and any help/advise!</p>