---
title: "SD0117: a one-argument .at(i) on a node that is not an array"
description: "SD0117, an error code of the TypeShade compiler. a one-argument .at(i) on a node that is not an array"
url: https://typeshade.dev/reference/errors/sd0117/
language: en
---

# `SD0117`

Core code

a one-argument .at(i) on a node that is not an array

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

`.at(i)` reads its element type from an array node's own ShaderType. A node of any other type has no element to read, and the one-argument call has nothing to build.

## How to fix it

The registry's hint: only an array node carries its element type — pass the element explicitly as .at(i, elemType)

## See also

- [Types](https://typeshade.dev/guide/language/types/)
- [`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/ir/node.ts:617`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/node.ts#L617)
