diff --git a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/CodegenReactiveFunction.ts b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/CodegenReactiveFunction.ts index 75f5223b4b..d9c7ae1c44 100644 --- a/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/CodegenReactiveFunction.ts +++ b/compiler/packages/babel-plugin-react-forget/src/ReactiveScopes/CodegenReactiveFunction.ts @@ -435,8 +435,8 @@ function codegenReactiveScope( ); if (testCondition === null) { CompilerError.invariant(firstOutputIndex !== null, { - reason: `Expected scope '@${scope.id}' to have at least one declaration`, - description: null, + reason: `Expected scope to have at least one declaration`, + description: `Scope '@{scope.id} has no declarations`, loc: null, suggestions: null, });