wobsoriano / trpc-nuxt

End-to-end typesafe APIs in Nuxt applications.
trpc-nuxt.vercel.app
MIT License
687 stars 39 forks source link

Documentation code snippets appear to be broken #125

Closed nhedger closed 1 year ago

nhedger commented 1 year ago

Some code snippets on the documentation website appear to be broken.

It looks like line breaks are missing.

Here's an example:

https://trpc-nuxt.vercel.app/get-started/usage/simple

Screenshot 2023-09-29 at 07 23 01

I'll try to troubleshoot this when I have a minute.

nhedger commented 1 year ago

Bisecting suggests that commit 90e9b251e0faea86c17915877478ef3af50066c8 introduced the issue.

Upgrading the docs to nuxt@3.7.3 or nuxt@3.7.4 seems to fix it, but there are issues with peer dependencies:

devDependencies:
- nuxt 3.7.2
+ nuxt 3.7.4

 WARN  Issues with peer dependencies found
docs
└─┬ @nuxt-themes/docus 1.14.8
  └─┬ @vueuse/nuxt 10.4.1
    └── ✕ unmet peer nuxt@3.7.2: found 3.7.4

Pretty sure it's of no consequence, though.