Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1384 Vistas

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

Avatar
Descartar
Mejor respuesta

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

Publicaciones relacionadas Respuestas Vistas Actividad
0
abr 24
1057
2
feb 25
907
0
ago 23
1537
2
feb 23
5700
2
mar 24
6693