# NoAlchemyAccountContextError | @account-kit/react

> Error thrown when a hook is called without a AlchemyAccountProvider.

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

{/* This file is auto-generated by TypeDoc. Do not edit manually. */}

Defined in: [account-kit/react/src/errors.ts:18](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/react/src/errors.ts#L18)

Error thrown when a hook is called without a AlchemyAccountProvider.

## Param

The name of the hook.

## Extends

- `BaseError`

## Constructors

### Constructor

```ts
new NoAlchemyAccountContextError(hookName): NoAlchemyAccountContextError;
```

Defined in: [account-kit/react/src/errors.ts:24](https://github.com/alchemyplatform/aa-sdk/blob/main/account-kit/react/src/errors.ts#L24)

Constructs an error message indicating that a specific hook must be used within an AlchemyAccountProvider.

#### Parameters

<table>
  <thead>
    <tr>
      <th align="left">Parameter</th>
      <th align="left">Type</th>
      <th align="left">Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `hookName`
      </td>

      <td>
        `string`
      </td>

      <td>
        The name of the hook that must be used within the AlchemyAccountProvider
      </td>
    </tr>

  </tbody>
</table>

#### Returns

`NoAlchemyAccountContextError`

#### Overrides

```ts
BaseError.constructor;
```

## Properties

<table>
  <thead>
    <tr>
      <th align="left">Property</th>
      <th align="left">Type</th>
      <th align="left">Default value</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        <a id="version" /> `version`
      </td>

      <td>
        `string`
      </td>

      <td>
        `VERSION`
      </td>
    </tr>

  </tbody>
</table>