Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1713 Представления

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
1335
2
февр. 25
1201
0
авг. 23
1817
2
февр. 23
6100
2
мар. 24
7182