Skip to content

Not compatible when used with pug #20

@yutanoma

Description

@yutanoma

Describe the bug

When using the component in a page written in pug syntax, the component seems to be not recognized...

<template lang="pug">
  div
    ATitle this is a title
</template>

スクリーンショット 2020-05-20 15 56 21

However, when I use it with normal HTML syntax, it will work.

<template>
  <div>
    <ATitle> this is a title </ATitle>
  </div>
</template>

スクリーンショット 2020-05-20 15 56 08

I will note that components written with pug syntax in the /components directory didn't affect the right functionality.

To Reproduce
Steps to reproduce the behavior:

  1. install @nuxt/components (& packages needed to write in pug syntax) by following the right instruction
  2. write the page in pug syntax

Expected behavior

works with pug syntax

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context

I am using pug with pug, pug-plain-loader, and pug-loader.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions