vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
13.17k stars 2.12k forks source link

打包可能会报错,提示 Error: Missing "./preload-helper" export in "vite" package , #1414

Closed gengzhaoji closed 2 years ago

gengzhaoji commented 2 years ago

Describe the bug

vitepress build docs 打包可能会报错,提示 Error: Missing "./preload-helper" export in "vite" package ,

Reproduction

vitepress build docs 打包可能会报错,提示 Error: Missing "./preload-helper" export in "vite" package ,

Expected behavior

打包没有错误

System Info

Error: Missing "./preload-helper" export in "vite" package ,

Additional context

No response

Validations

brc-dd commented 2 years ago

Yeah but how do we reproduce this (How to create a Minimal, Reproducible Example)? This error does not occur on a basic project. You must have done some customization. Please provide a link to some repo or paste your vite.config.ts and .vitepress/config.ts if overridden. Also, on which VitePress and Node version are you on? You were supposed to fill this in "System Info" section of issue form.

fvena commented 2 years ago

https://github.com/liyao1520/vitepress-demo-editor#%E6%89%93%E5%8C%85%E6%8A%A5%E9%94%99