Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twoslash error occurs when building nuxt. #1705

Open
ikxin opened this issue Nov 14, 2024 · 0 comments
Open

Twoslash error occurs when building nuxt. #1705

ikxin opened this issue Nov 14, 2024 · 0 comments

Comments

@ikxin
Copy link

ikxin commented Nov 14, 2024

I found many Twoslash errors while building the nuxt documentation. Is this expected?

#12 755.8  ERROR 
#12 755.8 ## Errors were thrown in the sample, but not included in an error tag
#12 755.8 
#12 755.8 These errors were not marked as being expected: 2322. 
#12 755.8 Expected: // @errors: 2322
#12 755.8 
#12 755.8 Compiler Errors:
#12 755.8 
#12 755.8 index.tsx
#12 755.8   [2322] 240 - Type 'string' is not assignable to type 'NavigationGuard'.
#12 755.8 
#12 755.8   ## Errors were thrown in the sample, but not included in an error tag
#12 755.8   
#12 755.8   These errors were not marked as being expected: 2322.
#12 755.8   Expected: // @errors: 2322
#12 755.8   
#12 755.8   Compiler Errors:
#12 755.8   
#12 755.8   index.tsx
#12 755.8   [2322] 240 - Type 'string' is not assignable to type 'NavigationGuard'.
#12 755.8   at validateCodeForErrors (node_modules/.pnpm/[email protected][email protected]/node_modules/twoslash/dist/core.mjs:41:20)
#12 755.8   at twoslasher2 (node_modules/.pnpm/[email protected][email protected]/node_modules/twoslash/dist/core.mjs:346:7)
#12 755.8   at twoslasher (node_modules/.pnpm/[email protected][email protected]/node_modules/twoslash-vue/dist/index.mjs:89:20)
#12 755.8   at Object.preprocess (node_modules/.pnpm/@[email protected][email protected]/node_modules/@shikijs/twoslash/dist/core.mjs:1127:30)
#12 755.8   at Object.preprocess (node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/@shikijs/vitepress-twoslash/dist/index.mjs:213:34)
#12 755.8   at codeToHast (node_modules/.pnpm/@[email protected]/node_modules/@shikijs/core/dist/index.mjs:1158:37)
#12 755.8   at Object.codeToHast (node_modules/.pnpm/@[email protected]/node_modules/@shikijs/core/dist/index.mjs:1825:37)
#12 755.8   at highlighter (node_modules/.cache/nuxt/.nuxt/prerender/chunks/build/mdc-highlighter.mjs:98:25)
#12 755.8   at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
#12 755.8   at async Object.handler (node_modules/.cache/nuxt/.nuxt/prerender/chunks/nitro/nitro.mjs:4141:10)
#12 755.8

Example:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant