Is prettier displayed down right when you have the ts file is open? I saw in recent versions of vscode that you can change\set the formatter for each language. And often prettier is not the default.
But I am comming closer to the root of the problem. By renaming the server.ts file to server.tsx prettier runs as expected but I would like to keep .ts server-side.