Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1776 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

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 Odpovědi Zobrazení Aktivita
0
dub 24
1367
2
úno 25
1258
0
srp 23
1873
2
úno 23
6153
2
bře 24
7228