Stable Archetype for AEM SPA React Project | Community
Skip to main content
akashkriz005
Level 2
February 16, 2023

Stable Archetype for AEM SPA React Project

  • February 16, 2023
  • 1 reply
  • 1045 views

Trying to create project structure for AEM SPA React and the build was success, but faced issues while  creating REACT API calls using useEffect in ui.frontend while building it is throwing error like
eslint-react-hooks not unable to find package. We used archetype 35. 

Any suggestions we can overcome this issue ? Will it be due to use of unstable archetype ? 

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

1 reply

Shashi_Mulugu
Community Advisor
Community Advisor
February 16, 2023

@akashkriz005 can you cross check your nodejs and npm version mentioned in archetype pom.xml vs what's in your system? It often happens if your system has different nodes or npm versions than archetype or if some of the modules or it'd dependencies mention in frontend app module got changed or deprecated.. 

 

As a best practice try to use latest archetype

akashkriz005
Level 2
February 19, 2023

Hi @shashi_mulugu ,

We tried to match the node and npm version that we have with the pom file , but facing issues again for UI Frontend. As mentioned before we used the archetype 35. 

 

Is there any stable version of node and npm we can try it out so as to match with archetype 35 ?