Once I use this regex anywhere in the script tag, all subsequent auto-imports stop working.
Seriously, I often encounter this issue, especially when I write some content or comments within the template tags. Even though it fully complies with Vue's syntax, it causes compilation to fail until I either delete the content, change some words, or rewrite it differently. I don't understand the internal parsing logic of Nuxt or Vue3. This issue doesn't always happen, but it's quite common.
Environment
Reproduction
https://stackblitz.com/edit/github-c1luxa?file=app.vue
Describe the bug
Once I use this regex anywhere in the script tag, all subsequent auto-imports stop working.
Seriously, I often encounter this issue, especially when I write some content or comments within the template tags. Even though it fully complies with Vue's syntax, it causes compilation to fail until I either delete the content, change some words, or rewrite it differently. I don't understand the internal parsing logic of Nuxt or Vue3. This issue doesn't always happen, but it's quite common.
Additional context
No response
Logs
No response