简体   繁体   中英

Error: Cannot find module (heroku deploy error)

I have been trying to deploy my MERN app and but am getting this error.

This is the error i have been getting every time it try to deploy the mern app on heroku it's getting deployed but then in logs i am getting this error and link is also not working

refer to this screenshot

Why do you export your model like that??

What happen if you only require the file


    const generalUser = require("../models/GeneralUsers.js")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM