Hey @Somtochukwu_Kelvin_Akuche,
Welcome to the MongoDB Community!
Thank you for sharing the error stack trace.
I would recommend posting the code snippet as text instead of an image, as it will make it easier for the community to read and assist.
However, from what I can see in the image, it looks like there is a relative path error in your import.
Here are a few things you can try to resolve this:
- Make sure the path is correct - verify that
./user.route.jsetc. exists and is exported properly. - Try deleting your
node_modulesfolder and reinstalling all modules withnpm install. Sometimes modules can get corrupted. - Add debug logging in your main index.js file to print out the loaded modules and see where it is failing.
Adding more logging and verifying that the path is correct would be my recommended first step. Please feel free to post a follow-up with the specific error text if you are still stuck.
Best regards,
Kushagra