Hi Team ,
I'm trying to build an AEM SPA React project from the scratch and UI team suggested to add typescript in the code base.
Any possible way to add typescript dependency in the mvn command for project creation ?
Regards,
Akash Krishna
Solved! Go to Solution.
Views
Replies
Total Likes
Hello @akashkriz005
As of now, there is no direct way to add TypeScript dependencies using the Maven command for an AEM SPA React project creation. The Adobe archetype does not support TypeScript out of the box. however you can manually add ts to your project once after generating the project.
navigate to ui.fe folder Then -- npm install --save-dev typescript , npx tsc --init
then update your Webpack configs to typescript as extensions: [ '.tsx', '.ts', '.js' ].
Hope this Helps you.
Thanks,
Venkat
Hello @akashkriz005
As of now, there is no direct way to add TypeScript dependencies using the Maven command for an AEM SPA React project creation. The Adobe archetype does not support TypeScript out of the box. however you can manually add ts to your project once after generating the project.
navigate to ui.fe folder Then -- npm install --save-dev typescript , npx tsc --init
then update your Webpack configs to typescript as extensions: [ '.tsx', '.ts', '.js' ].
Hope this Helps you.
Thanks,
Venkat
Thanks for the info Venkat ! Cheers !!
Views
Replies
Total Likes