Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
1728 Ansichten

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

Avatar
Verwerfen
Beste Antwort

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

Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Apr. 24
1345
2
Feb. 25
1208
0
Aug. 23
1825
2
Feb. 23
6109
2
März 24
7185