# SDK_CONTEXT_INVALID

- Surface: SDK

## Cause

`createSplitchBrowserClient` was given an Evaluation Context without a non-empty `targetingKey`.

## Fix

Pass `context: { targetingKey: … }` at construction. The browser client is static-context: that key is fixed for the client's lifetime and is not a credential.

## Related

- [SDK_CREDENTIAL_CONFIGURATION_INVALID](https://splitch.dev/docs/error/SDK_CREDENTIAL_CONFIGURATION_INVALID)
- [SDK_NOT_INITIALIZED](https://splitch.dev/docs/error/SDK_NOT_INITIALIZED)

Source: https://splitch.dev/docs/error/SDK_CONTEXT_INVALID