After integrating RequireJS into my Typescript template using the nuget package manager, I found that it was more than what I needed and decided to uninstall it. Even though I removed the package through nuget and the files were deleted properly, my Typescript code is still compiling with requireJS functions which are now causing errors as undefined functions when running. How can I resolve this issue and get my code to compile without the requireJS functions?
I attempted various solutions such as closing and reopening the solution, deleting the .js files and recompiling, and making changes to the code, but none of them worked.
Here is a snippet of the generated JS:
define(["require", "exports"], function (require, exports) { /* my code */ }