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.

MDX fails to render docs with Vue3

See original GitHub issue

I build components with Vite, Vue3, VueJsx, Typescript, Tailwindcss.

Everything works fine with Storybook in Component Story Format, but MDX Format only render Canvas and no Docs.

<-- BaseInput.stories.mdx -->

import { Meta, Story } from "@storybook/addon-docs/blocks";
import BaseInput from "./BaseInput";

<Meta title="Input/BaseInput" component={BaseInput} />

export const Template = (args) => <BaseInput {...args} />;

### Expect To See Some Docs

> But No Results

<Story
  name="Text"
  args={{
    prefix: "Account",
  }}
>
  {Template.bind({})}
</Story>

<Story
  name="Password"
  args={{
    prefix: "Password",
    type: "password",
  }}
>
  {Template.bind({})}
</Story>

It works in Canvas image

But it fails in Docs image

Below is the error message from console image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

Not working with Vue 3 · Issue #1718 · mdx-js/mdx
Not working with Vue 3 When I create a Project like this: ... customized the docs and i wanted to test now already...
Read more >
MDX fails to render docs with Vue3 #14201
I build components with Vite, Vue3, VueJsx, Typescript, Tailwindcss. Everything works fine with Storybook in Component Story Format, but MDX Format only render...
Read more >
@mdx-js/vue | MDX
Vue context for MDX. ... This package is not needed for MDX to work with Vue. ... import {MDXProvider} from '@mdx-js/vue' import {createApp}...
Read more >
Vue
Note: Parcel does not support using SFCs with Vue 2, you must use Vue 3 or later. ... <docs> This component represents the...
Read more >
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only ...
import rehypeHighlight from "rehype-highlight"; export default { chainWebpack: (config) => { config.module .rule("mdx") .test(/\.mdx?$/) .use ...
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