---
title: "TS8015 BACKEND: an error code of the TypeShade compiler"
description: "TS8015 BACKEND, an error code of the TypeShade compiler. A backend that refused to emit a module the front end accepted. The message is the backend's own."
url: https://typeshade.dev/reference/errors/ts8015/
language: en
---

# `TS8015`

Front-end code `BACKEND`

A backend that refused to emit a module the front end accepted. The message is the backend's own.

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"

@fragment
export function main(uv: location<0, vec2>): vec4 {
  return vec4(uv, 0., 1.)
}

@fragment
export function tinted(uv: location<0, vec2>): vec4 {
  return vec4(uv, 0.5, 1.)
}
```

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

**TS8015** warning, line 1: Backend emit failed: glsl-es300: the fragment stage has 2 entries (main\_, tinted) and a GLSL ES 3.00 shader has one main(); name the one to emit with emitGlslStages's fragmentEntry option

## How to fix it

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

example.shade.ts

```ts
"use typeshade"

@fragment
export function main(uv: location<0, vec2>): vec4 {
  return vec4(uv, 0., 1.)
}
```

## The rule this enforces

**[Rule 12.3](https://typeshade.dev/reference/rules/12-3/) Test**

Severity must follow the target’s role: a program WGSL refuses must be an error; a shortfall of GLSL ES 3.00 on a module with a render entry must be a warning that leaves `wgsl` in place; a compute-only module’s GLSL shortfall must be no diagnostic at all.

## See also

- [WGSL and GLSL](https://typeshade.dev/guide/concepts/wgsl-and-glsl/)
- [Error codes](https://typeshade.dev/reference/errors/)

## Source

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

- [`src/compiler/ts/diagnostic.ts:110`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/compiler/ts/diagnostic.ts#L110)
- [`src/language-service/check.ts:159`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/language-service/check.ts#L159)
