vuepress icon indicating copy to clipboard operation
vuepress copied to clipboard

npm run build always log wait Rendering static HTML

Open jeffreys-cat opened this issue 3 years ago • 5 comments

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

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.

  • Output of npx vuepress info in my VuePress project: Environment Info:

    System: OS: macOS 11.4 CPU: (8) x64 Intel(R) Core(TM) i5-8257U CPU @ 1.40GHz Binaries: Node: 10.23.0 - ~/.nvm/versions/node/v10.23.0/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 6.14.8 - ~/.nvm/versions/node/v10.23.0/bin/npm Browsers: Chrome: 92.0.4515.159 Edge: Not Found Firefox: 89.0 Safari: 14.1.1 npmPackages: @vuepress/core: 1.8.2 @vuepress/theme-default: 1.8.2 vuepress: ^1.3.1 => 1.8.2 npmGlobalPackages: vuepress: Not Found

jeffreys-cat avatar Aug 30 '21 11:08 jeffreys-cat

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?

morningman avatar Aug 30 '21 12:08 morningman

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

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

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

xuoutput avatar Sep 02 '21 04:09 xuoutput

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

ghost avatar Sep 12 '21 01:09 ghost

我也遇到此问题了,文章一多,就会出现如下问题,该如何解决? [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.

MyAccGit avatar Feb 15 '22 05:02 MyAccGit

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

13588936722 avatar Apr 21 '22 10:04 13588936722