Open History to see the last commit
1---
2id: MissingAliasInputsError
3title: MissingAliasInputsError
4---
5
6# Class: MissingAliasInputsError
7
8Defined in: [packages/db/src/errors.ts:742](https://github.com/TanStack/db/blob/main/packages/db/src/errors.ts#L742)
9
10Internal error when the compiler returns aliases that don't have corresponding input streams.
11This should never happen since all aliases come from user declarations.
12
13## Extends
14
15- [`QueryCompilationError`](QueryCompilationError.md)
16
17## Constructors
18
19### Constructor
20
21```ts
22new MissingAliasInputsError(missingAliases): MissingAliasInputsError;
23```
24
25Defined in: [packages/db/src/errors.ts:743](https://github.com/TanStack/db/blob/main/packages/db/src/errors.ts#L743)
26
27#### Parameters
28
29##### missingAliases
30
31`string`[]
32
33#### Returns
34
35`MissingAliasInputsError`
36
37#### Overrides
38
39[`QueryCompilationError`](QueryCompilationError.md).[`constructor`](QueryCompilationError.md#constructor)
40
41## Properties
42
43### cause?
44
45```ts
46optional cause: unknown;
47```
48
49Defined in: node\_modules/.pnpm/typescript@5.9.3/node\_modules/typescript/lib/lib.es2022.error.d.ts:26
50
51#### Inherited from
52
53[`QueryCompilationError`](QueryCompilationError.md).[`cause`](QueryCompilationError.md#cause)
54
55***
56
57### message
58
59```ts
60message: string;
61```
62
63Defined in: node\_modules/.pnpm/typescript@5.9.3/node\_modules/typescript/lib/lib.es5.d.ts:1077
64
65#### Inherited from
66
67[`QueryCompilationError`](QueryCompilationError.md).[`message`](QueryCompilationError.md#message)
68
69***
70
71### name
72
73```ts
74name: string;
75```
76
77Defined in: node\_modules/.pnpm/typescript@5.9.3/node\_modules/typescript/lib/lib.es5.d.ts:1076
78
79#### Inherited from
80
81[`QueryCompilationError`](QueryCompilationError.md).[`name`](QueryCompilationError.md#name)
82
83***
84
85### stack?
86
87```ts
88optional stack: string;
89```
90
91Defined in: node\_modules/.pnpm/typescript@5.9.3/node\_modules/typescript/lib/lib.es5.d.ts:1078
92
93#### Inherited from
94
95[`QueryCompilationError`](QueryCompilationError.md).[`stack`](QueryCompilationError.md#stack)
96
97***
98
99### stackTraceLimit
100
101```ts
102static stackTraceLimit: number;
103```
104
105Defined in: node\_modules/.pnpm/@types+node@25.2.2/node\_modules/@types/node/globals.d.ts:67
106
107The `Error.stackTraceLimit` property specifies the number of stack frames
108collected by a stack trace (whether generated by `new Error().stack` or
109`Error.captureStackTrace(obj)`).
110
111The default value is `10` but may be set to any valid JavaScript number. Changes
112will affect any stack trace captured _after_ the value has been changed.
113
114If set to a non-number value, or set to a negative number, stack traces will
115not capture any frames.
116
117#### Inherited from
118
119[`QueryCompilationError`](QueryCompilationError.md).[`stackTraceLimit`](QueryCompilationError.md#stacktracelimit)
120
121## Methods
122
123### captureStackTrace()
124
125```ts
126static captureStackTrace(targetObject, constructorOpt?): void;
127```
128
129Defined in: node\_modules/.pnpm/@types+node@25.2.2/node\_modules/@types/node/globals.d.ts:51
130
131Creates a `.stack` property on `targetObject`, which when accessed returns
132a string representing the location in the code at which
133`Error.captureStackTrace()` was called.
134
135```js
136const myObject = {};
137Error.captureStackTrace(myObject);
138myObject.stack; // Similar to `new Error().stack`
139```
140
141The first line of the trace will be prefixed with
142`${myObject.name}: ${myObject.message}`.
143
144The optional `constructorOpt` argument accepts a function. If given, all frames
145above `constructorOpt`, including `constructorOpt`, will be omitted from the
146generated stack trace.
147
148The `constructorOpt` argument is useful for hiding implementation
149details of error generation from the user. For instance:
150
151```js
152function a() {
153 b();
154}
155
156function b() {
157 c();
158}
159
160function c() {
161 // Create an error without stack trace to avoid calculating the stack trace twice.
162 const { stackTraceLimit } = Error;
163 Error.stackTraceLimit = 0;
164 const error = new Error();
165 Error.stackTraceLimit = stackTraceLimit;
166
167 // Capture the stack trace above function b
168 Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
169 throw error;
170}
171
172a();
173```
174
175#### Parameters
176
177##### targetObject
178
179`object`
180
181##### constructorOpt?
182
183`Function`
184
185#### Returns
186
187`void`
188
189#### Inherited from
190
191[`QueryCompilationError`](QueryCompilationError.md).[`captureStackTrace`](QueryCompilationError.md#capturestacktrace)
192
193***
194
195### prepareStackTrace()
196
197```ts
198static prepareStackTrace(err, stackTraces): any;
199```
200
201Defined in: node\_modules/.pnpm/@types+node@25.2.2/node\_modules/@types/node/globals.d.ts:55
202
203#### Parameters
204
205##### err
206
207`Error`
208
209##### stackTraces
210
211`CallSite`[]
212
213#### Returns
214
215`any`
216
217#### See
218
219https://v8.dev/docs/stack-trace-api#customizing-stack-traces
220
221#### Inherited from
222
223[`QueryCompilationError`](QueryCompilationError.md).[`prepareStackTrace`](QueryCompilationError.md#preparestacktrace)