Expand my Community achievements bar.

SOLVED

SCF is undefined

Avatar

Level 1

Hi ,

I am working on implementing the AEM calendar component in 6.3 overlaying the OOTB communities Calendar. I have followed exactly as per the documentation ​. When am trying to load the page with the custom Calendar added, SCF is undefined and thereby model registration,events binding are failing. I included cq.social.scf in global clientlib level as well as component clientlib. Still, the error is coming. Also copied scf.js from /etc/clientlibs/social/commons/scf and pasted under /apps/myproject/components/content/test/calendarTest/clientlibs/js/scf.js. Then am getting error in model.PFB screenshotscreenshot.PNG

guide.js:2246 Uncaught ReferenceError: SCF is not defined

    at guide.js:2246

(anonymous) @ guide.js:2246

clientlibs.js:3841 Uncaught TypeError: Cannot read property 'Model' of undefined

    at clientlibs.js:3841

    at clientlibs.js:3851

(anonymous) @ clientlibs.js:3841

(anonymous) @ clientlibs.js:3851

clientlib-components.js:1056 Uncaught TypeError: Cannot read property 'Model' of undefined

    at clientlib-components.js:1056

    at clientlib-components.js:1066

Please help me resolving this

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Could u pls add the clientlib category as cq.authoring.dialog and check

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Could u pls add the clientlib category as cq.authoring.dialog and check