跳至内容
菜单
此问题已终结
5 回复
2662 查看

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
2月 25
1242
1
2月 24
2570
2
7月 25
120
1
5月 25
971
0
5月 25
589