title: Import of Mongoose schema in Node js app not working properly
body: <p>I'm getting an error message whenever i try to import in my basic exercise app</p>
  
  <pre><code>Exercise-Tracker-MERN\backend\models\exercise.model.js:1
  (function (exports, require, module, __filename, __dirname) { import Schema from "mongoose";
  </code></pre>
  
  <pre><code>import Schema from "mongoose";
  const mongoose = require("mongoose");
  
  const exercise = new Schema(
    {
      username: { type: String, required: true },
      description: { type: String, required: true },
      duration: { type: Number, required: true },
      date: { type: Date, required: true }
    },
    {
      timestamps: true
    }
  );
  
  const Exercise = mongoose.model("Exercise", userSchema);
  module.exports = Exercise;
  </code></pre>
  
  <p>I'm following tutorial: 
  <a href="https://www.youtube.com/watch?v=7CqJlxBYj-M" rel="nofollow noreferrer">https://www.youtube.com/watch?v=7CqJlxBYj-M</a></p>