I\'m testing typescript with jquery, but when I compile the test.ts file, it always gives me an error indicating: Cannot find name \'$\'.
I\'ve already imported jquery &
If you find these errors 90% of the time its because of versioning Problem of @types/jquery
Try running:
npm install jquery --save
Then in app.module.ts:
app.module.ts
import * as $ from 'jquery';
Then run:
npm install @types/jquery@2.0.47
And you should be ready to go.