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

The following modules are needed by other modules but have not been defined, they may not be present in the correct asset bundle:

  • @web/legacy/js/core/minimal_dom

The following modules could not be loaded because they have unmet dependencies, this is a secondary error which is likely caused by one of the above problems:

  • @web/legacy/js/core/dialog
  • @web/legacy/js/core/dom

I'm getting this error when I try to open specific records in my local environment 

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

Hi, Odoo has updated Web app bay adding  "legacy/js/core/minimal_dom.js" and it refered in some other js files

So to solve the problem you need to add 

'assets': {
'web.assets_backend': [
# Odoo
.......
'web/static/src/legacy/js/core/minimal_dom.js',

in manifest file of your module

please rate if this solve your problem

Ảnh đại diện
Huỷ bỏ

It works, thank you

Câu trả lời hay nhất

Hi,


This error indicates missing or incompatible JavaScript modules. To ensure correct module imports, please use the following paths:


import * as minimalDom from '@web/legacy/js/core/minimal_dom';

import Dialog from "@web/legacy/js/core/dialog";

import dom from "@web/legacy/js/core/dom";


Also, try to upgrade the module.


Hope it helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 5 25
2705
2
thg 5 25
6137
1
thg 3 25
1811
4
thg 3 25
4702
3
thg 2 25
5773