AnswerBun.com

Page not loading in experience editor after implementing in Sitecore JSS App (React)

Sitecore Asked by prakashmadhava on December 12, 2020

I have implementation this OIDC Client in Sitecore JSS App(React). Looks like working fine in disconnected and disconnected mode. But when we load the in page in Sitecore experience editor it is throwing below error.

Cannot read property 'getItem' of undefined
TypeError: Cannot read property 'getItem' of undefined
at t [as get] (C:inetpubwwwrootsamplesitedistsample-jss-appserver.bundle.js:2067:14912)
at e.t [as _loadUser] (C:inetpubwwwrootsamplesitedistsample-jss-appserver.bundle.js:2113:46495)
at e.t [as getUser] (C:inetpubwwwrootsamplesitedistsample-jss-appserver.bundle.js:2113:32492)
at new t (C:inetpubwwwrootsamplesitedistsample-jss-appserver.bundle.js:2067:41166)
at new e (C:inetpubwwwrootsamplesitedistsample-jss-appserver.bundle.js:2113:32004)
at new AuthService (C:inetpubwwwrootsamplesitedistsample-jss-appserver.bundle.js:28825:22)
at new AuthProvider (C:inetpubwwwrootsamplesitedistsample-jss-appserver.bundle.js:28893:25)
at c (C:inetpubwwwrootsamplesitedistsample-jss-appserver.bundle.js:11787:325)
at Ua (C:inetpubwwwrootsamplesitedistsample-jss-appserver.bundle.js:11790:16)
at a.render (C:inetpubwwwrootsamplesitedistsample-jss-appserver.bundle.js:11796:48)

Is there any workaround to fix this issue?

Add your own answers!

Related Questions

Show current date in yy/MM/dd format

0  Asked on November 20, 2021

 

Using Model in Scriban template

1  Asked on November 7, 2021

   

Using List in SXA rendering variant

1  Asked on November 4, 2021

 

How do I query GraphQL using SPE?

1  Asked on August 23, 2021 by bic

     

LowerCaseKeywordAnalyzer does not work

0  Asked on August 23, 2021 by vivek-venugopalan

   

Add a Buyer Role to a User programatically

0  Asked on August 23, 2021 by shrad

 

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP