I've recently finished a college project using TypeScript and Node.js.
The final part of our assignment is to host this project on a cloud provider like Render (This was recommended by them).
I've followed all the steps they provided me with to set up the hosting of the project. But every time i try to run my build i get the following error:
import { Character } from './types';
^^^^^^
SyntaxError: Cannot use import statement outside a module
I've tried a few different solutions i found online such as adding Type: Module to my package.json, but this makes my entire project not recognise the .ts file extension.
The project works and runs perfectly by itself with no errors. It's only when i try to deploy it via Rendor where i'm having issues.