Skip to Content
Menu
This question has been flagged
1 Reply
1373 Views

Hello,

I try to integrate odoo live chat within an angular app +12.0.

But I get this error:

polyfills.js:formatted:698 Unhandled Promise rejection: Promise.resolve(...).then(...).guardedCatch is not a function ; Zone: ; Task: Promise.then ; Value: TypeError: Promise.resolve(...).then(...).guardedCatch is not a function

Avatar
Discard
Best Answer

It looks like you are trying to use the guardedCatch function in an Angular app, but it is not a function that is available in the global scope. This function is used internally by the Odoo live chat module to handle errors and promises in a specific way.

To integrate the Odoo live chat module into your Angular app, you will need to follow the steps described in the Odoo documentation for embedding the live chat widget in a custom website: https://www.odoo.com/documentation/user/12.0/website/live_chat/index.html

You will need to include the live chat script in your HTML page, and then initialize the live chat widget by calling the odoo.init() function with the appropriate options. You may also need to modify the live chat script to make it compatible with your Angular app, depending on the version of Angular that you are using and the modules that you have installed.

I hope this helps. Let me know if you have any questions or if you need further assistance.


Avatar
Discard
Related Posts Replies Views Activity
0
Oct 23
418
1
Dec 24
108
2
Nov 24
82
0
Nov 24
117
1
Oct 24
252