Compile fix
Add ts mode configuration