---
title: "UnsupportedFeatureError: class in Backends, TypeShade API"
description: "UnsupportedFeatureError, a class in Backends. Thrown when a module needs a feature the target backend does not support, with code SD0030."
url: https://typeshade.dev/api/unsupportedfeatureerror/
language: en
---

# `UnsupportedFeatureError`

Class in Backends

Thrown when a module needs a feature the target backend does not support, with code SD0030.

`import { UnsupportedFeatureError } from 'typeshade'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
class UnsupportedFeatureError extends TypeShadeError
```

## Description

The capability gate that runs before every emit throws it naming the missing capabilities, and an individual backend method throws it when asked for a construct its target cannot express. No source is produced in either case.

## Constructor

**`new UnsupportedFeatureError(message: string)`**

## In the guide

- [Diagnostics](https://typeshade.dev/guide/internals/diagnostics/)
- [Capabilities & extensions](https://typeshade.dev/guide/internals/capabilities-extensions/)

## Source

[`src/core/backend.ts`, line 346](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/backend.ts#L346), at commit af54ddad5
