primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
10.24k stars 1.21k forks source link

When used in vitepress, error will be reported when build #5487

Open liub1934 opened 6 months ago

liub1934 commented 6 months ago

Describe the bug

1. After starting development dev mode, the code works fine, but some component styles are overridden by the vitepress default styles, such as the Button component. image

2. An error occurred after running the packaging command npm run docs:build image

Reproducer

https://stackblitz.com/edit/vite-gmhvqb?file=docs%2F.vitepress%2Ftheme%2Findex.ts,docs%2F.vitepress%2Fconfig.ts

PrimeVue version

latest

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

Chrome 123.0.6312.59

Steps to reproduce the behavior

No response

Expected behavior

No response

liub1934 commented 6 months ago

Theme styles are easy to conflict. For example, when I use vitepress, the style of the button component is affected by the default theme style of vitepress, resulting in no style for the button component. image