Currently, I am diving into typescript through a comprehensive Udemy course. Recently, I completed an exercise that incorporated the use of Google Maps.
Following that, I made some updates to my Node.js version to 16 using nvm
. Subsequently, after updating Node.js, I proceeded to install TypeScript for the newer version with these commands:
$ npm install -g typescript ts-node
$ npm install -g @types/node @types/google.maps
I then began a new exercise where the task was to write a simple console log statement:
index.ts
console.log('Hi there')
After writing this code snippet, I attempted to compile the file using the following command:
$ ts index.ts
Although the index.js
file was generated, numerous errors surfaced:
...
(complex error messages)
Found 240 errors.
I have made several attempts to rectify this issue by uninstalling and reinstalling TypeScript without success.
Moreover, I am puzzled by the fact that I am encountering Google Maps-related errors even though the compiled file does not actually utilize Google Maps.