Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
4184 มุมมอง

While migrating the module from 14 to 15 found an error of Missing Dependency (web.WebClient) in the browser console.

Let me know if anyone faces the same and resolve it.

Please help.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Can you please try like this,

The web client can be defined using this format in JS.

const{WebClient}=require("@web/webclient/webclient");

Regards

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Getting this error after modifying below stuff "

const{WebClient}=require("@web/webclient/webclient");

"

Error while loading web_pwa_oca.webclient: WebClient.include is not a function TypeError: WebClient.include is not a function

    at web.assets_backend.min.js:10458:180
    at web.assets_common.min.js:93:63
    at new Promise ()
    at processJob (web.assets_common.min.js:93:9)
    at odoo.processJobs (web.assets_common.min.js:101:1)
    at web.assets_common.min.js:94:100

อวตาร
ละทิ้ง