vuejs / vuepress

📝 Minimalistic Vue-powered static site generator
https://vuepress.vuejs.org
MIT License
22.56k stars 4.76k forks source link

npm run build always log wait Rendering static HTML #2922

Open jeffreys-cat opened 3 years ago

jeffreys-cat commented 3 years ago

Bug report

Steps to reproduce

npm run install && npm run build

Here is a travis-ci example.

https://app.travis-ci.com/github/apache/incubator-doris/builds/236468019

What is expected?

I run npm run build and hope it can build done.

What is actually happening?

when I run npm run build, it just always show wait Rendering static HTML, but nothing else, I don't know what happened. here is the picture. (I'm so sorry for my network, I just paste a text version)

● Client █████████████████████████ emitting (95%) OptimizeCssAssetsWebpackPlugin ● Client █████████████████████████ after emitting (98%)
✔ Client Compiled successfully in 50.02s ✔ Server Compiled successfully in 41.65s [BABEL] Note: The code generator has deoptimised the styling of /Users/hujian05/Documents/code/incubator-doris/docs/.temp/internal/siteData.js as it exceeds the max of 500KB. [BABEL] Note: The code generator has deoptimised the styling of /Users/hujian05/Documents/code/incubator-doris/docs/.temp/internal/siteData.js as it exceeds the max of 500KB. wait Rendering static HTML...

Other relevant information

If I use the default command which isnpm run build, it will show a GC error, I guess it doesn't have enough memories. so I use node node --max_old_space_size=8192 ./node_modules/vuepress/cli.js build instead it. I think it doesn't matter with this problem.

morningman commented 3 years ago

I met same error, "wait Rendering static HTML..." takes more than 10min, which may because travis-ci timeout with error: No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.

How to speed up this process? Or can we print some logs to avoid travis ci timeout?

xuoutput commented 3 years ago

顶不住, 我也是这个问题, 文章一多, 构建时间突然炸裂

我还碰到了这个 FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

https://github.com/vuejs/vuepress/issues/966

ghost commented 3 years ago

文章一多,我的还有内存溢出问题,不知从何下手怎么解决 Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

MyAccGit commented 2 years ago

我也遇到此问题了,文章一多,就会出现如下问题,该如何解决? [BABEL] Note: The code generator has deoptimised the styling of ……\node_modules\@vuepress\core.temp\internal\siteData.js as it exceeds the max of 500KB.

13588936722 commented 2 years ago

治标不治本:层级过深,拍平即可