Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
1733 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

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.

Аватар
Відмінити
Автор

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

Related Posts Відповіді Переглядів Дія
0
квіт. 24
1350
2
лют. 25
1214
0
серп. 23
1835
2
лют. 23
6117
2
бер. 24
7188