Skip to content

[@nuxt/content-theme-docs] Global components don't work on Windows #343

@adrianschubek

Description

@adrianschubek

Version

@nuxt/content: 1.5.3
@nuxt/content-theme-docs: 0.3.1
nuxt: 2.14

Node 14.7
Windows 10

Reproduction Link

Repo created using npx create-nuxt-app and content module + docs theme.

https://github.com/adrianschubek/orm-ts-docs/tree/bug

Component in /components/global/Test.vue

<template>
  <div>
    This is a test
  </div>
</template>

<script>
export default {

}
</script>

<style scoped>

</style>

Markdown in /content/en/test.md

---
title: 'Introduction'
description: 'Empower your NuxtJS application with this awesome module.'
position: 1
category: 'Getting started'
version: 1.4
fullscreen: false
menuTitle: 'Intro'
---

Introducing my awesome Nuxt module!f

<alert type="info">

Check out a warning alert with a `codeblock`!

</alert>

<test></test>

Steps to reproduce

  1. Clone the repo
  2. npm i && npm run dev
  3. Go to http://localhost:3000/
  4. Click Intro or visit http://localhost:3000/test --> Error

What is Expected?

image

What is actually happening?

Visiting http://localhost:3000/test directly or refreshing the page will result in the following.
However when going to http://localhost:3000/ and clicking the sidebar navigation link it works.

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtheme-v1Concerns @nuxt/content-theme-docs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions