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

Vue components in MDX render fine in local but throws error in build #15

Open
sahanarula opened this issue Feb 11, 2025 · 0 comments
Open
Assignees
Labels
bug Something isn't working patch Increment the patch version when merged

Comments

@sahanarula
Copy link

Context
Due to some reason I'm unable to get .mdx to work with vue components in production only. It works perfectly fine on local while running npm run storybook-dev

Steps to reproduce:

  1. Add vue components to mdx file and setup the addon
  2. Run npm run storybook-dev and notice all the icons work fine locally.
  3. Now build the system using npm run build and npm run storybook-build
  4. Host storybook-static folder and notice the error thrown
Image

Here's the main.ts
Image

The package versions being used are:
"storybook-addon-vue-mdx": "^1.0.5",
"storybook": "^8.2.9",
"typescript": "^5.3.3",
"vite": "^4.5.1",

@Sidnioulz Sidnioulz added bug Something isn't working patch Increment the patch version when merged labels Feb 17, 2025
@Sidnioulz Sidnioulz self-assigned this Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working patch Increment the patch version when merged
Projects
None yet
Development

No branches or pull requests

2 participants