To import the jquery
library in my typescript project, I did the following.
- npm install typings --global
- typings install dt~jquery --global --save
Then in my typescript file, I did:
import {jquery as $} from 'jquery';
But the transcript compiler throws an error saying:
error TS2307: Cannot find module 'jquery'.
What is that I am missing here? Why can the compiler not find the jquery module?
Typescript version I am using : 2.1.5