Vitepress build vant error #2834
-
Describe the bugnode:v16.13.2 Reproduction// .vitepress config.ts export default defineConfig({ Expected behavior
System Info无 Additional contextNo response Validations
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 9 replies
-
Can you share it as stackblitz url? (https://vitepress.new). You most probably need to add something like this in your config file: vite: {
ssr: {
noExternal: ['vant'],
}
} |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Your example doesn't appear to be complete. Can you update it to show how you're using that component. |
Beta Was this translation helpful? Give feedback.
-
I also encountered the same problem , It's also related to vant |
Beta Was this translation helpful? Give feedback.
-
上述问题已经解决。 |
Beta Was this translation helpful? Give feedback.
Can you share it as stackblitz url? (https://vitepress.new). You most probably need to add something like this in your config file: