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

I have the situation that I have a component if I use a template it's

export class GeoengineRecord extends Component {

static template = "base_geoengine.GeoengineRecord";

...


I get the error message:

Uncaught Promise > Missing template: "base_geoengine.GeoengineRecord" (for component "GeoengineRecord")


If I Introduce the same xml via:

static template = xml`<p>Test</p>`

There is no issue.

I suspect it has something to do with the way I import it:

"web.assets_backend": [ "base_geoengine/static/src/js/**/*", "base_geoengine/static/src/js/views/**/*",

I had a similar issue where i needed to make my own bundle which is not good for this use case. -> a custom name instead of "web.assets_backend".

Any help would be appriciated.

아바타
취소
베스트 답변

Hi,


1. Change the folder to static/src/xml/file name.xml

2. Check the Template Definition in XML

3. make sure the assets are loaded in the right bundle


Hope it helps

아바타
취소
관련 게시물 답글 화면 활동
1
7월 22
3549
1
11월 20
3078
1
12월 23
2130
0
1월 25
977
0
11월 24
1949