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

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
4161
1
11月 20
3695
1
12月 23
2651
1
8月 25
916
0
1月 25
1403