To enable JavaScript inside a TypeScript project, you can set the allowJs property to true in the tsconfig.json . Tip: The tsc compiler does not detect the presence of a jsconfig.json file automatically. Use the –p argument to make tsc use your jsconfig.json file, e.g. tsc -p jsconfig.json .