In order to support SSR with Typescript, you will need to rename all your files in /src-ssr from .js to .ts and make the necessary TS code changes.
.js
.ts