Question : Cannot write file 'cypress/support/commands.js' because it would overwrite input file.
Answered by : ravi-jajam
I got the same issue. In my case, it was the result of the option: allowJs: true.
So I basically had to remove that line to get rid of the errors. I do not see it in your code, but perhaps it helps you here.
Source : https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file | Last Update : Thu, 12 Oct 23