question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
chrislutwcommented, Aug 21, 2020

I have same problem, and i found the problem in .nuxt\components\plugin.js maybe, but don’t know reason.

Version

@nuxt/content-theme-docs: 0.5.2 nuxt: 2.14.3

Node 12.16.3 Windows 7

Manual operation delete webpackChunkName windows path and it work

// in \.nuxt\components\plugin.js file

IconGithubTest: () => import('../..\\components\\global\\icon\\IconGithubTest.vue' /* webpackChunkName: "D:_Projects/test-doc/components/global/icon/IconGithubTest" */).then(c => c.default || c)
// change to this
IconGithubTest: () => import('../..\\components\\global\\icon\\IconGithubTest.vue' /* webpackChunkName: "components/global/icon/IconGithubTest" */).then(c => c.default || c)
0reactions
farnabazcommented, May 31, 2022

Hey there 👋

@nuxt/content-theme-docs is moving away and will not get any updates, very soon we will open-source Docus, a brand new theme based on Nuxt 3, and Content v2 with lots of fixes, improvements, and new features.

I’m closing this issue in favor of the new docs theme. Keep an eye on https://github.com/nuxt/content/issues/726 for updates

Read more comments on GitHub >

github_iconTop Results From Across the Web

Writing content - Nuxt Content
Learn how to write your content/, supporting Markdown, YAML, CSV and JSON.
Read more >
Installation - Nuxt
Here, you will find information on setting up and running a Nuxt project in 4 ... Open the index.vue file in your editor...
Read more >
Layouts directory - Nuxt
Every file (top-level) in the layouts directory will create a custom layout accessible with the layout property in the page components. Let's say...
Read more >
Configuration - Nuxt
The css Property ... Nuxt lets you define the CSS files/modules/libraries you want to set globally (included in every page). In case you...
Read more >
Plugins directory - Nuxt
The plugins directory contains your Javascript plugins that you want to run before instantiating the root Vue.js Application.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found