Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

AEM SPA react - Minified React error

Avatar

Level 2

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.

4 Replies

Avatar

Administrator

@konstantyn_diachenko @Mahedi_Sabuj @Madhur-Madan @gkalyan Curious to hear your perspectives on this question. Do you all mind sharing your thoughts?



Kautuk Sahni

Avatar

Community Advisor

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']

 

Avatar

Administrator

@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