npm运行build docs时,UglifyJS中的错误最大调用堆栈大小超过

问题描述

我有一个Vue项目,当我执行npm run build来构建库时,该项目工作得很好。但是,当我为文档构建项目时,在UglifyJS中出现如下所示的最大调用堆栈大小超出限制:

ERROR in static/js/vendor.5e4fdd246e7b7b0e3873.js from UglifyJs
RangeError: Maximum call stack size exceeded
at Array.push (<anonymous>)
at TreeWalker.push (eval at <anonymous> js\tools\node.js:18:1),<anonymous>:830:17)
at eval (eval at <anonymous>...

error message

我应该怎么做才能使其不超过最大通话量? 我尝试过node --stack_size=100000 uglifyjs,但对我也不起作用。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...