i can start my node app fine on my local machine but if i then pull the project from github on my server and start it with npm start
i get this error:
Cannot find module '../models/user'.
import User = require('../models/user');
registrationController.ts is trying to access the models/user.
This is how i import in that file:
import User = require('../models/user');
This is my folder structure. I get the error in the highlighted file:
This is my npm start
script:
"scripts": {
"start": "nodemon --watch '*.ts' --exec 'ts-node' app.ts"
}