Issue
For a while, my application compiled and ran smoothly in the browser. However, after I installed and uninstalled typings and npm's @types/*, my original app started encountering compilation errors despite no changes in the code or tsconfig.json
.
Inquiry
I'm perplexed by this sudden change in behavior from the TS compiler. What could be causing these differences?
Specifics
- Upon successfully compiling the initial code, I proceeded to install typings.
- I added a definition using
typings install dt~amodule --global --save
- Next, I opted for an npm-based solution for missing type definitions:
npm install --save-dev amodule
- I made updates to utilize the npm definition
- Following that, I reverted all changes with git and manually removed the
typings
folder. Additionally, I uninstalled@types/amodule
and globaltypings
usingnpm uninstall
. - Now, errors are appearing in components and libraries that were not even modified during this process.