vite-plugin-vue-inspector
vite-plugin-vue-inspector copied to clipboard
Element is missing end tag for template with pug `<template lang="pug">`
I get the following error on some pages not all where the inspector is somehow not working with pug templates.
12:16:38 [vite] Internal server error: Element is missing end tag.
Plugin: vite-plugin-vue-inspector
File: <fileName>.vue
at createCompilerError (<projectRoot>\node_modules\.pnpm\@[email protected]\node_modules\@vue\compiler-core\dist\compiler-core.cjs.js:1364:17)
at emitError (<projectRoot>\node_modules\.pnpm\@[email protected]\node_modules\@vue\compiler-core\dist\compiler-core.cjs.js:2949:5)
at Object.onclosetag (<projectRoot>\node_modules\.pnpm\@[email protected]\node_modules\@vue\compiler-core\dist\compiler-core.cjs.js:2308:13)
at Tokenizer.stateInClosingTagName (<projectRoot>\node_modules\.pnpm\@[email protected]\node_modules\@vue\compiler-core\dist\compiler-core.cjs.js:785:16)
at Tokenizer.parse (<projectRoot>\node_modules\.pnpm\@[email protected]\node_modules\@vue\compiler-core\dist\compiler-core.cjs.js:1143:16)
at Object.baseParse (<projectRoot>\node_modules\.pnpm\@[email protected]\node_modules\@vue\compiler-core\dist\compiler-core.cjs.js:2988:13)
at parse (<projectRoot>\node_modules\.pnpm\@[email protected]\node_modules\@vue\compiler-dom\dist\compiler-dom.cjs.js:904:23)
at result (file:///<projectRoot>/node_modules/.pnpm/[email protected][email protected]_@[email protected][email protected][email protected]_sass-e_krlzsdnrcvjiedxgiovpbcmqzi/node_modules/vite-plugin-vue-inspector/dist/index.mjs:29:21)
at new Promise (<anonymous>)
at compileSFCTemplate (file:///<projectRoot>/node_modules/.pnpm/[email protected][email protected]_@[email protected][email protected][email protected]_sass-e_krlzsdnrcvjiedxgiovpbcmqzi/node_modules/vite-plugin-vue-inspector/dist/index.mjs:26:24)
it seems that the inspector is naively trying to match the next occuring < in some way, if there is text after it it gets interpreted as a tag probably, if it is followed by a space #75 is the result in any case it seems that there are problems with < in various scenarios