Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

AEM 6.0: After Service Pack 3 Installation: ReferenceError: "granite" is not defined.

Avatar

Level 2

Hello everyone,

I just installed the Service Pack 3 which was released a few days ago on my local AEM 6.0 (https://docs.adobe.com/docs/en/aem/6-0/release-notes-sp3.html).

Unfortunately after the installation the project I'm working on displays an error when rendering a page. It says "ReferenceError: "granite" is not defined.". It looks like it's a Sightly related issue since there are no errors in the JSP-based Geometrixx projects like Geometrixx-Media. My page component uses "wcm/foundation/components/page" as a resourceSuperType and I have a few scripts included in the head-tag through sling & sightly:

<head data-sly-use.head="head.js" data-sly-use.headlibRenderer="headlibs.html" data-sly-use.stats="stats.js" data-sly-use.wcmInit="initwcm.js" data-sly-use.clientLib="${'/libs/granite/sightly/templates/clientlib.html'}"> <title>News Admin</title> <meta charset="utf-8" /> <link data-sly-call="${clientLib.css @ categories='newsadmin.clientlibs'}" data-sly-unwrap/> <script data-sly-call="${clientLib.js @ categories='newsadmin.clientlibs'}" data-sly-unwrap/> </head> 
2 Replies

Avatar

Level 2

Here's also the full error message with the stack trace as an attachment:

Avatar

Level 10

If this occurred after a SP installation - this is a bug as opposed to you doing something wrong. Please report this to the support team by opening a ticket here: 

https://helpx.adobe.com/marketing-cloud/experience-manager.html