Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2109 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
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

Powiązane posty Odpowiedzi Widoki Czynność
0
kwi 24
1633
2
lut 25
1575
0
sie 23
2108
2
lut 23
6537
2
mar 24
7543