I have created a React app with Typescript and JSX (creating .tsx files instead of .ts) which I am attempting to run in a docker container with hot reloads but with little success.
I've tried using nodemon in conjunction with ts-node but keep running into the error
[ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".tsx"
One suggestion was to remove "type": "module" from the package.json file but this leads to the error;
SyntaxError: Cannot use import statement outside a module
I get caught in a loop in SO between this question and this one
Does anyone know how to solve either this specific issue of getting ts-node to work with tsx files or more generally how to enable hot reloading of typescript with JSX inside a docker container?