تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
5 الردود
2862 أدوات العرض

I have a component in /bulletin_board_wall/static/src/bb_wall/wall_view


And I want to use this component in a different module but the import with 


import { WallView } from "@bulletin_board_wall/bb_wall/wall_view/wall_view";


doesn't work. 

الصورة الرمزية
إهمال
أفضل إجابة

 I want to solve  this problem  too 

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

As I've fallen over my own question again:
The correct path is @MODULE_NAME/PATH_STARTING_AFER_SRC

eg: 

Filename:
/base_geoengine/static/src/js/views/geoengine/geoengine_record/geoengine_record.esm.js
Import:
import { GeoengineRecord } from "@base_geoengine/js/views/geoengine/geoengine_record/geoengine_record.esm";

الصورة الرمزية
إهمال
أفضل إجابة

Hi ,

Please verify that you have taken the component from the correct path

eg:


import { WallView } from "@module_name/actual_path/js";
//and also try adding this inside the components
export class ClassName extends Component{
}
ClassName.components = {
WallView
}

Regards

الصورة الرمزية
إهمال
أفضل إجابة

you have depens it ?

الصورة الرمزية
إهمال
أفضل إجابة

Try this

import { WallView } from "@bulletin_board_wall/static/src/bb_wall/wall_view";



الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
فبراير 25
1395
1
فبراير 24
2776
2
يوليو 25
435
1
مايو 25
1224
0
مايو 25
698