Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
1773 Weergaven

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

Avatar
Annuleer
Beste antwoord

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
Annuleer
Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
0
apr. 24
1364
2
feb. 25
1255
0
aug. 23
1872
2
feb. 23
6145
2
mrt. 24
7226