Build Successful! Then MODULE_NOT_FOUND

After a “build successful” message I get the following

Running Locally, this all works. I DID try including my devDependencies in my Dependencies, in case that was the issue.

Also, it appears to loop a deployment attempt every couple of minutes, although I’ve turned the auto setting off.

Any pointers?

Hi there,

Running locally is something we hear a lot of - typically though locally isn’t a Linux server, so it’s not a direct comparison.

I suspect the problem here is in app.js and specifically a difference between the require statement you have for login.js - you need to make sure that the require statement is referencing the paths/files IDENTICALLY as to their names on disk - Linux is a case-sensitive operating system, so if you had require('./authRoutes/Login.js in your app.js, but your filename was login.js then you would get MODULE_NOT_FOUND just as you are here.

Your require will be ./authRoutes/login.js so the folder should be named authRoutes and the file login.js

Let me know how you get on?

Regards,

John B
Render Support, UTC+1 :uk:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.