vuepress
vuepress copied to clipboard
[BABEL] Note: The code generator has deoptimised the styling of internal\siteData.js as it exceeds the max of 500KB.
[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 } `
I have the save problem, have you solved it?
我也遇到这个问题了,请问你解决了吗
没有解决。也不影响啥,一直就这样用着。
------------------ 原始邮件 ------------------ 发件人: "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: @.***>
没解决可是一直启动不成功啊
I have the same issue, in my case the website have more than 800 posts
我在这个 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