Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
1729 Vues

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

Avatar
Ignorer
Meilleure réponse

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
Ignorer
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

Publications associées Réponses Vues Activité
0
avr. 24
1346
2
févr. 25
1210
0
août 23
1828
2
févr. 23
6113
2
mars 24
7187