# TS2592: Cannot find name '…'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig.

> jQuery's $ or jQuery global is used without its type definitions. Install @types/jquery and add "jquery" to the types option.

## What it means

The name is jQuery's global (`$` or `jQuery`), and no jQuery type definitions are loaded.

## Example

```ts
$(".item");
export {};
```

## How to fix

- Install the type definitions: `npm i --save-dev @types/jquery`.
- If `tsconfig.json` sets `types`, add `"jquery"` to it.
- Or import jQuery as a module instead of relying on the global.

Source: https://ts-r.dev/errors/TS2592/
