Skip to content

When using pug templates with devTools enabled: Illegal tag name. Use '&lt;' to print '<'. #259

Open
@rudolfbyker

Description

@rudolfbyker

Environment


  • Operating System: Linux
  • Node Version: v16.14.2
  • Nuxt Version: 3.5.3
  • Nitro Version: 2.4.1
  • Package Manager: [email protected]
  • Builder: vite
  • User Config: devtools
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-78ly8d?file=nuxt.config.ts

Describe the bug

When using pug templates with devTools enabled, I can't use the < or > operators inside attributes. They cause this error: Illegal tag name. Use '&lt;' to print '<'. When I disable devTools, the problem goes away.

Additional context

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions