The solutions offered in other related questions, such as including the proper presets (es2015) in .babelrc, are already implemented in my project.
I have two projec
You might need to specify the extensions option if you're using TypeScript:
require("@babel/register")({ extensions: ['.jsx', '.js', '.ts', '.tsx'] })