vuepress icon indicating copy to clipboard operation
vuepress copied to clipboard

打包的时候.temp中生成的.server下的app.js报错

Open RyfiLucy opened this issue 3 years ago • 0 comments

  • [ ] I confirm that this is an issue rather than a question.

Bug report

image 这里自动生成的app.js会报找不到vue-router,其中scsight的内容是esm,不是cjs也会报错,在config.ts中该如何配置才能不生成 .server或者生成的app.js是esm而不是cjs。 我用的是最新版,vite打包的。

Steps to reproduce

What is expected?

解答以上问题

What is actually happening?

Other relevant information

  • Output of npx vuepress info in my VuePress project:

RyfiLucy avatar Jun 24 '22 05:06 RyfiLucy