---
title: "SD0114: an error code of the TypeShade compiler"
description: "SD0114, an error code of the TypeShade compiler. a variable a function reads has no declaration in the module"
url: https://typeshade.dev/reference/errors/sd0114/
language: en
---

# `SD0114`

Core code

a variable a function reads has no declaration in the module

No `"use typeshade"` program on this site raises this code, so the page has no example. The [`fn()`](https://typeshade.dev/api/fn/) builder builds the IR directly and reaches the check at the lines under Source.

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

## When it fires

The two silent-acceptance diagnostics of B4.

Both name a module that assembles, validates and emits today, and fails at the driver or computes the wrong thing. Neither moves an emitted byte: they report what is already there.

## How to fix it

The registry's hint: add the handle that owns it to module({ uses: \[...\] }) — a uniformStruct or storageBuffer left out of `uses` emits no var declaration, and the module is rejected at pipeline creation

## See also

- [Resources](https://typeshade.dev/guide/language/resources/)
- [`TypeShadeError`](https://typeshade.dev/api/typeshadeerror/)
- [Error codes](https://typeshade.dev/reference/errors/)

## Source

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

- [`src/core/passes/lint/rules/uses-declared.ts:101`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/passes/lint/rules/uses-declared.ts#L101)
