vuepress icon indicating copy to clipboard operation
vuepress copied to clipboard

[BABEL] Note: The code generator has deoptimised the styling of internal\siteData.js as it exceeds the max of 500KB.

Open MyAccGit opened this issue 3 years ago • 7 comments

[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.

操作步骤: 1、新建英文目录 2、终端执行 yarn add -D vuepress,设置配置文件 3、在根目录下创建docs 4、创建MD文档,N个 5、执行 yarn docs:build 时报如上错误。

只要MD文件多到一定程度后,就会出现此问题。 网上搜索了各种方法尝试,均未能成功。 恳请老师能予以指导,具体如何处理这个问题?

搜索网上有指导如下方法的,但参考设置后,仍报前述错误,没有解决。 ` 在项目的根目录下找到 .babelrc 文件,增加 "compact": false ,如:

{ "compact": false, "presets": ["env", "react", "stage-0"], "plugins": [ "transform-runtime" ] } 如果不存在则手动创建该文件,并填写内容如:

{ "compact": false } `

MyAccGit avatar Feb 16 '22 02:02 MyAccGit

I have the save problem, have you solved it?

coderup2021 avatar Feb 22 '22 05:02 coderup2021

我也遇到这个问题了,请问你解决了吗

StarCoderLn avatar Jul 05 '22 04:07 StarCoderLn

没有解决。也不影响啥,一直就这样用着。

------------------ 原始邮件 ------------------ 发件人: "vuejs/vuepress" @.>; 发送时间: 2022年7月5日(星期二) 中午12:30 @.>; @.@.>; 主题: Re: [vuejs/vuepress] [BABEL] Note: The code generator has deoptimised the styling of internal\siteData.js as it exceeds the max of 500KB. (Issue #3003)

我也遇到这个问题了,请问你解决了吗

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

MyAccGit avatar Oct 11 '22 08:10 MyAccGit

没解决可是一直启动不成功啊

wodepig avatar Mar 09 '23 00:03 wodepig

I have the same issue, in my case the website have more than 800 posts

sr2ds avatar Mar 29 '23 10:03 sr2ds

我在这个 issue 中提到如何解决,希望对大家有帮助 I tried to handle this problem in this issue, hoping that it will help you.

issue: https://github.com/xugaoyi/vuepress-theme-vdoing/issues/694

ReturnTmp avatar Oct 13 '23 02:10 ReturnTmp