コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

AEM 65 - Touch UI RTE (Rich Text Editor) Dialog Color Picker Plugin - Throwing Handlebars.compile error in XF pages

Avatar

Community Advisor

Hi Team

 

   We are using the Color Picker plugin (Refer )  developed and provided by Sreekanth . The plugin works fine in our pages, but while using the color-picker in the XF pages, it is not loading in the RTE and  we are getting Handlebars.compile is not a function issue in the console. Has anyone faced a similar issue ? Any help is appreciated

 

TIA
Veena

1 受け入れられたソリューション

Avatar

正解者
Community Advisor

Hi @VeenaVikraman 

Check /etc.clientlibs/clientlibs/granite/handlebars.js loading in your XF page or not.

元の投稿で解決策を見る

12 返信

Avatar

Community Advisor

Avatar

Community Advisor
I will try this and let you know @arunpatidar. Thanks for quick reply.

Avatar

Community Advisor

Avatar

Community Advisor
@arunpatidar The plugin you provided is also having the same issue. It is not working in Experience Fragment pages. Throwing the same Handlebars.compile issue.

Avatar

正解者
Community Advisor

Hi @VeenaVikraman 

Check /etc.clientlibs/clientlibs/granite/handlebars.js loading in your XF page or not.

Avatar

Level 1

hi , it is not loading , what can i do ?

Avatar

Community Advisor

The color-picker doesn't work in Experience Fragment (XF) pages since the Handlebar js is not available there and underscore (clientlibs added as dependency in the picker) doesn't have Handlebar.compile module. I was trying with handlebars as dependency all the time after reading it somewhere, but after some debugging ( thanks to my co-worker) I could figure out that the dependency which had handlebar in AEM is cq.handlebars. 

 

So anybody facing Handlebars.compile is not a function issue in the future, please add cq.handlebars as additional dependency to your clientlibs

 

Thanks

Veena

Avatar

Community Advisor
Thanks for sharing Veena
Arun Patidar

AEM LinksLinkedIn

Avatar

Level 2

Hi @VeenaVikraman  @arunpatidar 

Using AEM 6.5 AACS and following blog http://aemlab.blogspot.com/2019/07/aem-rte-custom-plugins-1.html  (had to remove underscore dependency), even after adding cq.handlebars dependency Handlebars.compile is throwing Handlebars.compile is not a function error. This issue is happening only on XF, I can see that rest of the handlebars functions are available on XF too(please refer to screenshot below). It works fine on content page though. Any suggestions ?

 

 Handlebars_compile.png

 

 

resolved by adding cq.tsdk.handlebars as dependency instead of cq.handlebars

Avatar

Level 3

Thanks @AkankshaPratihar . It worked as your solution.

Avatar

Level 2

@VeenaVikraman Thanks for sharing the solution