nuxt / content

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.
https://content.nuxt.com
MIT License
3.06k stars 621 forks source link

unable to follow links inside *.md content pages #2499

Closed krisatkinson closed 2 weeks ago

krisatkinson commented 7 months ago

Environment


Reproduction

$ npx nuxi@latest init content-app -t content
$ cd content-app
$ pnpm run generate
$ pnpm run preview

Describe the bug

Getting the following console errors when attempting to navigate from localhost:3000/ to localhost:3000/about by clicking on the Try to navigate to [/about](http://localhost:3000/about) link on the default @nuxt/content example homepage:

In the browser:

Unhandled Promise Rejection: TypeError: null is not an object (evaluating 'e.namespaceURI')
Unhandled Promise Rejection: TypeError: Right side of assignment cannot be destructured

The page does not change. Going to /about by typing in the URL manually works works as expected, however when clicking the "Go Back" link on the About page, the same console errors occur.

Issue occurs after statically generating the site using pnpm run generate. Issue occurs when using pnpm run preview, or when serving generated static assets from some other server (such as npm package http-server, etc)

Additional context

I had attempted add nuxt content to an existing project, and upon running into the above issue, I simply created a new templated project via copy-paste the commands provided in the Getting Started documentation to re-test the issue, and it still happened in the Getting Started template project.

Edit: the same issue happens if I hit "Play in Stackblitz" on the nuxt content Getting Started page. Tested on 2 different Macs and Windows surface laptop: https://content.nuxt.com/get-started/installation

Logs

No response

farnabaz commented 7 months ago

Edit: the same issue happens if I hit "Play in Stackblitz" on the nuxt content Getting Started page. Tested on 2 different Macs and Windows surface laptop: https://content.nuxt.com/get-started/installation

I'm not able to reproduce this issue. Also, I didn't see any error in docs. Do you mind creating a simple reproduction content starter?

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] commented 2 weeks ago

This issue was closed because it has been stalled for 30 days with no activity.