Upgrade AEM react libraries with typescript | Community
Skip to main content
daf99
Level 2
September 14, 2020
Solved

Upgrade AEM react libraries with typescript

  • September 14, 2020
  • 2 replies
  • 1549 views

Hello everyone,

I'm working in a project  AEM SPA with ReactJS, since last week i have a warning when i am building the project because AEM react libraries that i am using are deprecated.
After reading about this new libraries, i realise that besides the package renaming also it were introduced in the new versions support to typescript, and thats is very interesting because i am using typescript in my project.
After i done the changes below, i have a lot of errors in my typescript validation because i have to use the new typsecripts types.

 

"@adobe/cq-react-editable-components": "1.2.0",
"@adobe/cq-spa-component-mapping": "1.0.3",
"@adobe/cq-spa-page-model-manager": "1.1.1"
To

"@adobe/aem-react-editable-components": "1.0.4",
"@adobe/aem-spa-component-mapping": "1.0.5",
"@adobe/aem-spa-page-model-manager": "1.0.3"

 

I tried to find some documentation to help me in this migration, but i am not able to find in this forum or in the aem documentation some documents with support for AEM with reactjs and typescript. 
Do you know where to find some documentation or someone that already have done the migration for the new libraries?

2 replies

kautuk_sahni
Community Manager
Community Manager
March 4, 2025

@daf99 Did you find the suggestion helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!

Kautuk Sahni