Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed (Author was flagged for spam)

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

7
MERN backend won't deploy on Render
Post Body

I'm making a simple inventory management system using the MERN stack. I've deployed my frontend successfully on Render, but am getting errors when trying to deploy the backend. The error I'm getting relates to a model/schema not being found. I feel as though my models and routes are being exported/imported correctly. The environment variables and build commands are also all correct. Also, everything runs perfectly on my local server port, all the routes are being hit and the database is working. I've attached some images with the relevant errors and code, could anyone offer any suggestions?

The deployment error I'm getting

Server.js file

Product model

Productroutes.js file

Author
Account Strength
0%
Account Age
10 months
Verified Email
Yes
Verified Flair
No
Total Karma
44,069
Link Karma
25,886
Comment Karma
18,183
Profile updated: 2 months ago
Posts updated: 2 weeks ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 months ago