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

the JS itself is being logged but the class is not being logged

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

Hello, Please declare the asset key in the module's manifest file.

Example:

'assets': {
'web.assets_backend': [
'module_name/static/src/js/my_module.js'
]
}

Replace module_name with the name of your module and js_name_module with the name of your JavaScript module.

Don't forget to restart the server after making the changes.

อวตาร
ละทิ้ง
ผู้เขียน

oh sorry it seems I forgot to put it that I already have it as you have stated but like I said the js itself was logged however the class wasn't

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
เม.ย. 24
1334
Database Manager unresponsive แก้ไขแล้ว
2
ก.พ. 25
1199
0
ส.ค. 23
1814
2
ก.พ. 23
6097
2
มี.ค. 24
7179