We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 318f268 commit c00d2edCopy full SHA for c00d2ed
1 file changed
packages/start-plugin-core/src/start-compiler-plugin/handleCreateServerFn.ts
@@ -335,7 +335,7 @@ export function handleCreateServerFn(
335
336
// Find the variable declaration statement containing our createServerFn
337
const variableDeclaration = candidatePath.parentPath.parentPath
338
- if (!variableDeclaration?.isVariableDeclaration()) {
+ if (!variableDeclaration.isVariableDeclaration()) {
339
throw new Error(
340
'Expected createServerFn to be in a VariableDeclaration',
341
)
0 commit comments