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

Illegal tag name. Use '&lt;' to print '<'. #210

Closed
s27840213 opened this issue Jan 30, 2024 · 7 comments · Fixed by #214
Closed

Illegal tag name. Use '&lt;' to print '<'. #210

s27840213 opened this issue Jan 30, 2024 · 7 comments · Fixed by #214
Assignees
Labels
upstream Related to an upstream issue

Comments

@s27840213
Copy link

s27840213 commented Jan 30, 2024

Hi, I'm a front-end developer from Taiwan.
Thanks for developing such an awesome tool that will save lots of Vue developers' time

Recently, I found a bug when using this plugin with Pug

The below codes are the simplest reproduction.

<template lang="pug">
div(v-if="1 < 1")
</template>

<script></script>

<style></style>

If I need to provide more information, please leave a comment below.
I will respond to it as soon as possible.

Thanks 🙏 !

---UPDATE: 2024/2/1 ---
I'm sorry that I provided insufficient information about this issue, and I have created a reproduction repo based on the project in which I encountered this problem.
https://github.com/s27840213/Vue-Devtool-Bug-Rereproduction/tree/main

The project originally was a Monorepo project with 2 packages and 3 projects, and now I have simplified it, just preserving a test project that will throw the error.

I have add a READMD.md in this repo.
If you need more information, just leave a comment below, and I will also reply it as soon as possible! Thank you very much!

@webfansplz
Copy link
Member

Can you provide a mini repo? thank you 🙏.

@alexzhang1030
Copy link
Member

alexzhang1030 commented Jan 31, 2024

I guess this is an issue of vite-plugin-vue-inspector, also related: webfansplz/vite-plugin-vue-inspector#75.

This is because currently vite-plugin-vue-inspector cannot compile pug template.

@alexzhang1030 alexzhang1030 added the upstream Related to an upstream issue label Jan 31, 2024
@alexzhang1030
Copy link
Member

/cc @webfansplz I think we need to allow users to enable/disable inspector, like the workaround of nuxt/devtools#259

@webfansplz
Copy link
Member

webfansplz commented Jan 31, 2024

/cc @webfansplz I think we need to allow users to enable/disable inspector, like the workaround of nuxt/devtools#259

I agree that we should add the options to resolve the issue, and I think it would be better if we could support the pug template in vue-inspector, I'll try it out.

@s27840213
Copy link
Author

Can you provide a mini repo? thank you 🙏.

Hi, Thanks for your reply!
I have added a reproduction repo in the above.
If you need more information, just let me know.
Thank you very much Orz!

@s27840213
Copy link
Author

/cc @webfansplz I think we need to allow users to enable/disable inspector, like the workaround of nuxt/devtools#259

Yes, this bug is thrown by vite-plugin-vue-inspector.
Temporarily, I also think providing an option to disable the inspector is a good way.
Thanks for the trouble Orz!

@webfansplz
Copy link
Member

/cc @webfansplz I think we need to allow users to enable/disable inspector, like the workaround of nuxt/devtools#259

Yes, this bug is thrown by vite-plugin-vue-inspector. Temporarily, I also think providing an option to disable the inspector is a good way. Thanks for the trouble Orz!

Upgrade to v7.0.14 and update the Vite config:

 VueDevTools({
     componentInspector: false,
 })

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

Successfully merging a pull request may close this issue.

3 participants