Typescript and JQuery compile error: Cannot find name ‘$’

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:

import * as $ from 'jquery';

Then run:

  npm install @types/jquery@2.0.47

And you should be ready to go.

Leave a Comment