Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element is missing end tag for template with pug <template lang="pug"> #114

Open
sschneider-ihre-pvs opened this issue Dec 2, 2024 · 1 comment

Comments

@sschneider-ihre-pvs
Copy link

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)
@sschneider-ihre-pvs
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant