Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
1745 Tampilan

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

Avatar
Buang
Jawaban Terbai

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.

Avatar
Buang
Penulis

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

Post Terkait Replies Tampilan Aktivitas
0
Apr 24
1359
2
Feb 25
1240
0
Agu 23
1842
2
Feb 23
6121
2
Mar 24
7196