Message Boards

My portlet doesn't load !

Axel LEFEVRE, modified 3 Years ago.

My portlet doesn't load !

Junior Member Posts: 25 Join Date: 2/18/20 Recent Posts
When the network is slow, my portlets don't load, and the messages below appear in the javascript console :


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.
 
 Some information about the require() call follows:
   · Require call id: 2 
   · Required modules: 
Array [ "my-project@1.0.0" ]
 
   · Missing modules: 
Array(3) [ "my-project$vue@2.6.7/dist/vue.common.dev", "my-project$vue@2.6.7/dist/vue.common", "my-project@1.0.0/index" ]
 
   · Stack trace of the require() call: 
        value@http://localhost:8080/o/frontend-js-web/loader/loader.js:1:5898
        @http://localhost:8080/:8172:17
         
 Error: Load timeout for modules: my-project@1.0.0
    value loader.js:487
    setTimeout handler*value loader.js:478
    value loader.js:322
    promise callback*value loader.js:272
    <anonymous> (index):8172
logger.js:28:2
    value logger.js:28
    s loader.js:224
    value loader.js:403
    b loader.js:327
    value loader.js:495
    (Asynchrone : setTimeout handler)
    value loader.js:478
    value loader.js:322
    (Asynchrone : promise callback)
    value loader.js:272
    <anonyme> (index):8172

</anonyme></anonymous>



combo?browserId=other&amp;minifierType=js&amp;languageId=fr_FR&amp;b=7201&amp;t=1598538909809&amp;/o/frontend-js-web/aui/widget-stack/widget-stack.js&amp;/o/frontend-js-web/aui/widget-stdmod/widget-stdmod.js&amp;/o/frontend-js-web/aui/aui-aria/aui-aria.js&amp;/o/frontend-js-web/aui/aui-io-plugin-deprecated/aui-io-plugin-deprecated.js&amp;/o/frontend-js-web/aui/aui-io-request/aui-io-request.js&amp;/o/frontend-js-web/aui/aui-loading-mask-deprecated/aui-loading-mask-deprecated.js&amp;/o/frontend-js-web/aui/aui-overlay-base-deprecated/aui-overlay-base-deprecated.js&amp;/o/frontend-js-web/aui/aui-overlay-context-deprecated/aui-overlay-context-deprecated.js&amp;/o/frontend-js-web/aui/aui-overlay-manager-deprecated/aui-overlay-manager-deprecated.js&amp;/o/frontend-js-web/aui/aui-overlay-mask-deprecated/aui-overlay-mask-deprecated.js&amp;/o/frontend-js-web/aui/aui-parse-content/aui-parse-content.js&amp;/o/frontend-js-web/liferay/layout_exporter.js&amp;/o/frontend-js-web/liferay/session.js&amp;/o/frontend-js-web/liferay/deprecated.js:1 Uncaught ReferenceError: YUI is not defined



at combo?browserId=other&amp;minifierType=js&amp;languageId=fr_FR&amp;b=7201&amp;t=1598538909809&amp;/o/frontend-js-web/aui/widget-stack/widget-stack.js&amp;/o/frontend-js-web/aui/widget-stdmod/widget-stdmod.js&amp;/o/frontend-js-web/aui/aui-aria/aui-aria.js&amp;/o/frontend-js-web/aui/aui-io-plugin-deprecated/aui-io-plugin-deprecated.js&amp;/o/frontend-js-web/aui/aui-io-request/aui-io-request.js&amp;/o/frontend-js-web/aui/aui-loading-mask-deprecated/aui-loading-mask-deprecated.js&amp;/o/frontend-js-web/aui/aui-overlay-base-deprecated/aui-overlay-base-deprecated.js&amp;/o/frontend-js-web/aui/aui-overlay-context-deprecated/aui-overlay-context-deprecated.js&amp;/o/frontend-js-web/aui/aui-overlay-manager-deprecated/aui-overlay-manager-deprecated.js&amp;/o/frontend-js-web/aui/aui-overlay-mask-deprecated/aui-overlay-mask-deprecated.js&amp;/o/frontend-js-web/aui/aui-parse-content/aui-parse-content.js&amp;/o/frontend-js-web/liferay/layout_exporter.js&amp;/o/frontend-js-web/liferay/session.js&amp;/o/frontend-js-web/liferay/deprecated.js:1
js_bundle_config?t=1602575716495:37 ReferenceError: AUI is not defined
thumbnail
Iván Zaera Avellón, modified 3 Years ago.

RE: My portlet doesn't load !

Regular Member Posts: 119 Join Date: 10/1/13 Recent Posts
You can increase the AMD Loader Timeout in Control Panel > System Settings > Frontend Infrastructure. It is 7 seconds by default, if I recall correctly.
Axel LEFEVRE, modified 3 Years ago.

RE: My portlet doesn't load !

Junior Member Posts: 25 Join Date: 2/18/20 Recent Posts
Thanks Iván for your answer, it reply partially to my problem because it works but I'm obligated to set the timeout to 30 sec, it's really long for our customers to sometime wait more than 20 sec. Have a good day !