How to import the react dependencies in Liferay portlet?

Jamie Sammons, modified 3 Years ago. New Member Post: 1 Join Date: 9/22/22 Recent Posts

Hello, 

I have some issues with the react module in lifeary.

I have created one Liferay react module, and I am trying to add the below-highlighted dependencies into the package.json file and the same dependencies are added in Liferay's OOTB module document-library-web.

 

 

But when I do blade gw deploy, I am unable to deploy my module.

Also, How does Liferay manage the dependencies? because in Liferay's module there is no build.gradle files.

I am following mentioned below Liferay blog.

Can someone help me to solve it?

https://help.liferay.com/hc/en-us/articles/360017888032-Using-React-in-Your-Portlets