Skip to content

configParser issue when applying datalayer to different site than WeRetail #15

@jhroemer

Description

@jhroemer

AEM version: 6.4
AEM Datalayer version: 0.3.0

Hi there. When we add a datalayer configuration to one of our sites, the following error appears when the page loads:

Uncaught SyntaxError: Invalid or unexpected token
    at Object.ns.configParser (core.js:7499)
    at new constructor (core.js:8461)
    at HTMLUnknownElement.<anonymous> (core.js:34654)
    at Function.each (jquery.js:370)
    at jQuery.fn.init.each (jquery.js:137)
    at Object.ns.ContentFrame.self.getEditables (core.js:34650)
    at Object.ns.ContentFrame.self.loadEditables (core.js:34691)
    at Object.<anonymous> (core.js:34711)
    at Function.Deferred (jquery.js:3472)
    at Array.ns.ContentFrame.self.loadEditablesAsync (core.js:34710)

The datalayer works, we can add data to it and see that it is exposed, but the site does not display properly. Everything works when we add a configuration to the WeRetail project. The issue seems to stem from a bad json config-object in some CQ-specific JS, but we haven't been able to discern the real cause of the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions