DEV Community

Discussion on: Use TypeScript with Svelte / Sapper

Collapse
 
roeland profile image
Roeland

Make sure you have

input: config.server.input().server.replace(/\.js$/, ".ts"),

and not

input: config.client.input().server.replace(/\.js$/, ".ts"),

for the server
(I had the same error after copy/paste)