'Cannot find Module error when running on production server. ExpressJS

I'm working on Node JS using ExpressJS. Everything works fine when I run the service on my local. But when I move the code to the production server. I got this error,

Error: Cannot find module '../controllers/SeatExcelcontroller'

Here is my route that call this controller,

const express = require('express');
const router = express.Router();
const SeatExcelController = require('../controllers/SeatExcelcontroller');

const seatExcelController = new SeatExcelController();

router.get('/paxlist/:program_id', seatExcelController.generateExcel);

module.exports = router;

Here is my project structure,

enter image description here

I really have no idea how to fix this because the path of the controller is correct and it can work on my local.

Please helps. Thanks a lot.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source