콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
1871 화면

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

관련 게시물 답글 화면 활동
0
4월 24
1426
2
2월 25
1339
0
8월 23
1911
2
2월 23
6292
2
3월 24
7298