Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1930 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
ott 23
933
0
lug 25
182
1
lug 25
4967
0
lug 25
496
0
giu 25
611