Recently, I encountered an error message from the compiler stating: Cannot write file 'path/file.json' because it would overwrite input file. After some investigation, most of the solutions suggested using outDir to resolve this issue. Although that solution worked effectively, I was unsure about which folder to specify for it. Currently, I have configured it as shown below and the compiler no longer displays errors:
outDir: "path/file.json",
I am hesitant about whether this approach is ideal, as essentially I am passing the same file. The JSON content serves as an object that I am retrieving data from and I am working with an Aurelia project. Any advice or insights on this matter would be greatly valued.