콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
5 답글
3278 화면

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
1599
1
2월 24
3021
2
7월 25
743
1
5월 25
1495
0
5월 25
918