---
title: "TS8050 ENABLE_NAME: an error code of the TypeShade compiler"
description: "TS8050 ENABLE_NAME, an error code of the TypeShade compiler. A file-level \"enable <extension>\"…"
url: https://typeshade.dev/reference/errors/ts8050/
language: en
---

# `TS8050`

Front-end code `ENABLE_NAME`

A file-level `"enable <extension>";` directive that names an extension outside the vocabulary of the WGSL backend's capability profile. A misspelled name would otherwise be an ordinary string statement and silently enable nothing.

The registry has no documentation comment for this constant, so the line above is written by this site from the messages the compiler raises it with.

The registry text and every compiler message on these pages are the compiler's own English.

## Example

example.shade.ts

```ts
"use typeshade"
"enable f61";

declare const data: storage<array<f32>, "read_write">

@compute([64])
export function main(id: builtin<"global_invocation_id">): void {
  data[id.x] = data[id.x] * 2.
}
```

Compiled at build time against the pinned compiler, this program gets:

**TS8050** error, line 2: Unknown WGSL extension "f61". Did you mean "f16"?

## How to fix it

The same program, corrected. It compiles with no diagnostic.

example.shade.ts

```ts
"use typeshade"
"enable f16";

declare const data: storage<array<f32>, "read_write">

@compute([64])
export function main(id: builtin<"global_invocation_id">): void {
  data[id.x] = data[id.x] * 2.
}
```

## The rule this enforces

**[Rule 10.1](https://typeshade.dev/reference/rules/10-1/) Test**

A `"use typeshade"` file must not spell a WGSL `enable` or `requires` statement.

## See also

- [Language guide](https://typeshade.dev/guide/language/)
- [Error codes](https://typeshade.dev/reference/errors/)

## Source

Where the compiler raises this code at commit af54ddad5, one line per file:

- [`src/compiler/ts/enables.ts:52`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/compiler/ts/enables.ts#L52)
