Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

MissingAliasInputsError.md

221 lines4.6 KB

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