Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
5 ตอบกลับ
2978 มุมมอง

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";



อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 25
1462
1
ก.พ. 24
2851
2
ก.ค. 25
496
1
พ.ค. 25
1284
0
พ.ค. 25
773