Already included file name 'c:/Users/saadaoui/Desktop/Backend/models/product.js' differs from file name 'c:/Users/saadaoui/Desktop/Backend/models/Product.js' only in casing.
The file is in the program because:
Imported via "./models/product" from file 'c:/Users/saadaoui/Desktop/Backend/index.js'
Already included file name 'c:/Users/saadaoui/Desktop/Backend/models/product.js' differs from file name 'c:/Users/saadaoui/Desktop/Backend/models/Product.js' only in casing.
The file is in the program because:
Imported via "./models/product" from file 'c:/Users/saadaoui/Desktop/Backend/index.js'
السؤال
محمود سعداوي2
السلام عليكم.
لو سمحتم توضيح الخطأ التالي
Already included file name 'c:/Users/saadaoui/Desktop/Backend/models/product.js' differs from file name 'c:/Users/saadaoui/Desktop/Backend/models/Product.js' only in casing.
The file is in the program because:
Imported via "./models/product" from file 'c:/Users/saadaoui/Desktop/Backend/index.js'
Root file specified for compilation
product.js
const mongoose = require("mongoose") const Product = mongoose.model("Product", { title: { type: String }, description: { type: String }, price: { type: Number }, image: { type: String } }) module.exports = Product;
شكرا لكم.
تعديل عنوان السؤال
2 أجوبة على هذا السؤال
Recommended Posts
انضم إلى النقاش
يمكنك أن تنشر الآن وتسجل لاحقًا. إذا كان لديك حساب، فسجل الدخول الآن لتنشر باسم حسابك.