Support Article
Unable to load chat on webpages
SA-47924
Summary
Unable to load chat on webpages with require.js when inserting a chat code on application web pages.
Error Messages
Uncaught TypeError: Cannot read property 'load' of undefined
at Object./home/pegausr/develop/ff-products/chat/node_modules/moment-timezone/index.js../data/packed/latest.json (chatLoader.js:formatted:22621)
at a (chatLoader.js:formatted:17)
at chatLoader.js:formatted:19
at Object./home/pegausr/develop/ff-products/chat/client/chat/connection/message.js.../utils/objectPolyfill (chatLoader.js:formatted:955)
at a (chatLoader.js:formatted:17)
at chatLoader.js:formatted:19
at Object./home/pegausr/develop/ff-products/chat/client/chat/connection/chat.js.../../../common/client/cookies (chatLoader.js:formatted:207)
at a (chatLoader.js:formatted:17)
at chatLoader.js:formatted:19
at Object./home/pegausr/develop/ff-products/chat/client/chat/connection/chatHub.js.../../../common/client/cookies (chatLoader.js:formatted:541)
Steps to Reproduce
Unknown
Root Cause
Conflict in the node modules when using AMD and other .js libraries such as require.js.
Resolution
Apply HFix-38917.
Tags:
Published December 7, 2017 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.