Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
1937 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
0
oct. 23
938
0
juil. 25
216
1
juil. 25
4976
0
juil. 25
516
0
juin 25
620