The very first page of the docs is a little unclear about whether the main file is main.tsx or main.ts.
It's a bit a of problem because as it stands, JSX can't be used within that particular file, as in the first example, but the configuration is not looking for main.tsx and fails with an error if you (naively) change the extension.