-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BABEL] Note: The code generator has deoptimised the styling of internal\siteData.js as it exceeds the max of 500KB. #3003
Comments
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 中提到如何解决,希望对大家有帮助 |
需要创建babel.config.js这个文件,babel官网地址配置文件说明 https://babeljs.io/docs/config-files,希望对您有帮助! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[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
}
`
The text was updated successfully, but these errors were encountered: