AEM SPA react - Minified React error | Community
Skip to main content
sdk60873563
Level 2
October 9, 2024
Solved

AEM SPA react - Minified React error

  • October 9, 2024
  • 4 replies
  • 1167 views

Hi All,

 

I have setup the new aem spa project(react+aemacs) using latest archetype 48. Whenever I try to access sample page created out of archetype, I get following error and hence complete page is blank.

console Error:

clientlib-react.lc-f4570aa4cd86ef1726795b9da632b102-lc.min.js:4 Uncaught (in promise) Error: Minified React error #200; visit https://reactjs.org/docs/error-decoder.html?invariant=200 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at t.render (clientlib-react.lc-f4570aa4cd86ef1726795b9da632b102-lc.min.js:4:333626)
at clientlib-react.lc-f4570aa4cd86ef1726795b9da632b102-lc.min.js:6:4176

 

Do you have any idea how to resolve this? I tried changing the archetype/ node version, it did not help.

 

Thank you in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mahedi_Sabuj

Can you share ui.frontend/src/index.js here?

Additionally, include the jsProcessor to the aem-clientlib-generator config in ui.frontend/clientlib.config.js file.

jsProcessor: ['min:gcc;languageIn=ECMASCRIPT_NEXT']

 

4 replies

kautuk_sahni
Community Manager
Community Manager
October 17, 2024

@konstantyn_diachenko @mahedi_sabuj @madhur-madan @gkalyan Curious to hear your perspectives on this question. Do you all mind sharing your thoughts?

Kautuk Sahni
konstantyn_diachenko
Community Advisor
Community Advisor
October 17, 2024
Kostiantyn Diachenko, Community Advisor, Certified Senior AEM Developer, creator of free AEM VLT Tool, maintainer of AEM Tools plugin.
Mahedi_Sabuj
Community Advisor
Mahedi_SabujCommunity AdvisorAccepted solution
Community Advisor
October 17, 2024

Can you share ui.frontend/src/index.js here?

Additionally, include the jsProcessor to the aem-clientlib-generator config in ui.frontend/clientlib.config.js file.

jsProcessor: ['min:gcc;languageIn=ECMASCRIPT_NEXT']

 

Mahedi Sabuj
kautuk_sahni
Community Manager
Community Manager
November 5, 2024

@sdk60873563 Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni