diff --git a/compiler/parse/state/tag.js b/compiler/parse/state/tag.js index d8ac4fd776..322972abf3 100644 --- a/compiler/parse/state/tag.js +++ b/compiler/parse/state/tag.js @@ -88,7 +88,7 @@ export default function tag ( parser ) { if ( name in specials ) { const special = specials[ name ]; - if ( parser[ special.id ] ) { + if ( parser[ special.property ] ) { parser.index = start; parser.error( `You can only have one <${name}> tag per component` ); } diff --git a/test/parser/error-multiple-styles/error.json b/test/parser/error-multiple-styles/error.json new file mode 100644 index 0000000000..6a8b184ed6 --- /dev/null +++ b/test/parser/error-multiple-styles/error.json @@ -0,0 +1,8 @@ +{ + "message": "You can only have one + +