In Vue+TypeScript, what's going on when running an error exports is not defined?

I am using the abp framework. After the front end is vue+typescript,npm run build, the console error Uncaught ReferenceError: exports is not defined occurs after running.
but that"s what"s weird here, too. this error doesn"t happen in every case, and it doesn"t necessarily happen in any file. For example, the first line of the following code script, which does not have a semicolon at first, will report the error mentioned above, but it would be nice if I added a semicolon before the first line. The weird thing is that it doesn"t work every time, and sometimes it doesn"t work.

tsconfig.json







it"s hard for me to add a semicolon to this file, so I don"t think the problem is that simple. And, ah, there was nothing wrong with this problem before. I don"t know how it ended up on it. It was very weird.
after all, I am a little confused now. I hope my friends who know how to help me find a way. Thank you very much!

May.19,2022
Menu