Skip to content

Inline SVG in <template> causing TS2304 error "Cannot find name" for attributes of svg/path tags #96

@TyShkan

Description

@TyShkan
<template>
...
<svg
  class="h-6 w-6 block"
  xmlns="http://www.w3.org/2000/svg"
  fill="none"
  viewBox="0 0 24 24"
  stroke="currentColor"
>
  <path
    stroke-linecap="round"
    stroke-linejoin="round"
    stroke-width="2"
    d="M4 6h16M4 12h16M4 18h16"
  ></path>
</svg>
...
</template>

Screenshot 2021-03-14 at 19 42 46

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions