Automatic component import does not work on a new project v2.15.0

Versions

  • nuxt: v2.15.0
  • node: v14.13.1

Reproduction

Automatic component imports do not work when you create a new project. The whole project is created by default. I just added scss, bootstrap.
error
Unknown custom element: <Container> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

Steps to reproduce

  • Create new component with name

<template><div class="container"><slot /></div></template>
<script> export default { name: "Container" }</script>

  • Insert a new component in page/index.vue
    <Container> test content </Container>

What is Expected?

Component shown

What is actually happening?

I’m getting a console error:
Unknown custom element: <Container> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

If I install version 2.14.12 everything works fine.

1 possible answer(s) on “Automatic component import does not work on a new project v2.15.0