Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1717 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 4 24
1335
2
thg 2 25
1202
0
thg 8 23
1817
2
thg 2 23
6101
2
thg 3 24
7183