For me, I needed to use https://github.com/softwareventures/resolve-typescript-plugin in order to get ts-loader to be able to handle importing TS files using the import ... from '.../*.js';
syntax. An alternative is upgrading to Webpack v5. See Webpack/ts-loader import with .js extension not resolving