Error “Cannot write file … because it would overwrite input file.”
Everything red in programming can cause stress and panic yet it is the best way to up our skills. Like I always say, when you are new to the technology it is a worse feeling not knowing where you are going wrong yet you keep seeing the errors. In this post am going to share with you the irritating typescript warnings and how it was solved for me.
Below is the error in typescript
To solve this, in your tsconfig.json file make sure you add the “outDir” like below after setting allowJS: true. Your file should look like this
You can find the typescript vue configuration on the Vue documentation
Well hopefully this helps in solving this annoying error. Below are the reference that might help you further. . Happy debugging .
Reference