{"record":{"id":"a0a612a7c9e42868","repo":"Meituan-Dianping/mpvue","slug":"v-on-without-argument-does-not-support-modifiers","errorCode":null,"errorMessage":"v-on without argument does not support modifiers.","messagePattern":"v-on without argument does not support modifiers\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/compiler/directives/on.js","lineNumber":7,"sourceCode":"/* @flow */\n\nimport { warn } from 'core/util/index'\n\nexport default function on (el: ASTElement, dir: ASTDirective) {\n  if (process.env.NODE_ENV !== 'production' && dir.modifiers) {\n    warn(`v-on without argument does not support modifiers.`)\n  }\n  el.wrapListeners = (code: string) => `_g(${code},${dir.value})`\n}\n","sourceCodeStart":1,"sourceCodeEnd":11,"githubUrl":"https://github.com/Meituan-Dianping/mpvue/blob/6c5d78ee04f58c6d782c456dfcf0fe63c0b7f89b/src/compiler/directives/on.js#L1-L11","documentation":"Dev-only compiler check in the v-on directive handler: a v-on directive was written without an event argument (e.g. v-on=\"handlers\") while carrying modifiers. The object-syntax form binds a handler map and has no single event to which modifiers (.stop, .prevent) could apply, so modifiers are meaningless and rejected.","triggerScenarios":"Thrown at src/compiler/directives/on.js:7 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove the modifiers from the argument-less v-on","Use v-on:event.modifier syntax if you need modifiers, applying them per event","Handle preventDefault/stopPropagation manually inside the handler object's functions"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c5d78ee04f58c6d782c456dfcf0fe63c0b7f89b","analyzedAt":"2026-09-02T05:17:40.946Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T11:17:12.671Z"}