shamahoque / mern-marketplace

A MERN stack based online marketplace application [Full-Stack React Projects]
http://marketplace2.mernbook.com/
MIT License
514 stars 205 forks source link

compile failure in order.controller.js #6

Closed zz245 closed 4 years ago

zz245 commented 5 years ago

I failed to compile with the following error: ERROR in ./server/controllers/order.controller.js Module not found: Error: Can't resolve '../models/Order.model' in '/home/admin/marketplace/mern-marketplace/server/controllers'

After I changed "Order.model" to "order.model" in order.controller.js, the compiler succeeded.

alexzabo85 commented 4 years ago

Very good book, Thank you!

using ubuntu16 I get this error:

ERROR in ./server/controllers/order.controller.js Module not found: Error: Can't resolve '../models/Order.model' in '/home/alex/Downloads/marketplace/server/controllers' @ ./server/controllers/order.controller.js 7:13-45 @ ./server/routes/order.routes.js @ ./server/express.js @ ./server/server.js @ multi ./server/server.js

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.