We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c2402a commit 675330bCopy full SHA for 675330b
packages/compiler-core/src/transforms/vBind.ts
@@ -10,7 +10,7 @@ import { CAMELIZE } from '../runtimeHelpers'
10
export const transformBind: DirectiveTransform = (dir, node, context) => {
11
const { exp, modifiers, loc } = dir
12
const arg = dir.arg!
13
- if (!exp) {
+ if (!exp || (exp.type === NodeTypes.SIMPLE_EXPRESSION && !exp.content)) {
14
context.onError(createCompilerError(ErrorCodes.X_V_BIND_NO_EXPRESSION, loc))
15
}
16
// .prop is no longer necessary due to new patch behavior
0 commit comments