Message Boards

Liferay React application and Typescript support

Chirag Patel, modified 3 Years ago.

Liferay React application and Typescript support

New Member Posts: 6 Join Date: 4/11/15 Recent Posts

I'm using Liferay 7.2 and I have created react application using js-generator. By defaults it creating js files like index.js, App.js. I want typescript(.ts, .tsx) support in my Liferay react application. How can I? Please suggest the way to make Liferay react application supporting typescript.

I have gone through the below links and tried in my application as well :

  1. https://create-react-app.dev/docs/adding-typescript/
  2. https://www.typescriptlang.org/docs/handbook/tsconfig-json.html

But above solutions not worked in case of Liferay react application.