Liferay:amd-loader 错误,require() 调用失败

问题描述 投票:0回答:2

服务器重新启动后,前端应用程序开始抛出一些错误,并且找不到任何对此问题有用的文档。

这些错误作为 javascript 错误在控制台中抛出

liferay-amd-loader | A require() call has failed but no failure handler was provided. Note that even if the call stack of this error trace looks like coming from the Liferay AMD Loader, it is not an error in the Loader what has caused it, but an error caused by the require() call. The reason why the Loader is in the stack trace is because it is printing the error so that it doesn't get lost.However, we recommend providing a failure handler in all require() calls to be able to recover from errors better and to avoid the appearance of this message.

有关 require() 调用的一些信息如下: · 需要呼叫 ID:0 · 所需模块:

[
"[email protected]/render.es",
"[email protected]/js/ApplicationsMenu",
"metal-dom/src/all/dom",
"[email protected]/render.es",
"[email protected]/DropdownMenu"
]

 Error: Load timeout for modules: [email protected]/render.es,[email protected]/js/ApplicationsMenu,metal-dom/src/all/dom,[email protected]/render.es,[email protected]/DropdownMenu
at combo?browserId=chrome&minifierType=js&languageId=en_US&b=7304&t=1637093660756&/o/frontend-js-aui-web/aui/widget-stdmod/widget-stdmod.js&/o/frontend-js-aui-web/aui/aui-aria/aui-aria.js&/o/frontend-js-aui-web/aui/aui-io-plugin-deprecated/aui-io-plugin-deprecated.js&/o/frontend-js-aui-web/aui/aui-io-request/aui-io-request.js&/o/frontend-js-aui-web/aui/aui-loading-mask-deprecated/aui-loading-mask-deprecated.js&/o/frontend-js-aui-web/aui/aui-overlay-base-deprecated/aui-overlay-base-deprecated.js&/o/frontend-js-aui-web/aui/aui-overlay-context-deprecated/aui-overlay-context-deprecated.js&/o/frontend-js-aui-web/aui/aui-overlay-manager-deprecated/aui-overlay-manager-deprecated.js&/o/frontend-js-aui-web/aui/aui-overlay-mask-deprecated/aui-overlay-mask-deprecated.js&/o/frontend-js-aui-web/aui/aui-parse-content/aui-parse-content.js&/o/frontend-js-aui-web/liferay/session.js&/o/frontend-js-aui-web/liferay/deprecated.js&/o/frontend-js-web/loader/config.js&/o/frontend-js-web/loader/loader.js&/o/frontend-js-web/misc/svg4everybody.js&/o/frontend-js-web/liferay/dom_task_runner.js&/o/frontend-js-web/liferay/events.js&/o/frontend-js-web/liferay/lazy_load.js&/o/frontend-js-web/liferay/liferay.js&/o/frontend-js-web/liferay/global.bundle.js&/o/frontend-js-web/liferay/portlet.js&/o/frontend-js-web/liferay/workflow.js:146:489

我正在使用 Liferay Community Edition Portal 7.3.4 CE GA5,并且该网站在重新启动之前正在运行,所以我假设我遗漏了一个步骤或其他内容。 还有其他人遇到过这个吗? 预先感谢

java tomcat liferay osgi osgi-bundle
2个回答
0
投票

错误消息中提到了超时。您可以在控制面板 > 系统设置 > 基础结构 > JavaScript 加载器 > 模块定义超时中增加超时。默认为 7 秒。但最好减小 javascript 应用程序的大小。


0
投票

这个问题有解决办法吗? 我有一模一样的...

© www.soinside.com 2019 - 2024. All rights reserved.