Message Boards

Angular widget not visible for addition

Toni Nieto Oliver, modified 3 Years ago.

Angular widget not visible for addition

New Member Post: 1 Join Date: 4/12/20 Recent Posts
Hi everybody,

I have a problem that's been driving me crazy for days and I haven't been able to solve it. I have searched the forum for similar problems but I have not been able to solve it. If you could help me I would appreciate it.
I'm trying to migrate an application made in Angular to a Liferay portlet.The problem I have is that I manage to deploy the Angular widget in my Liferay environment, and Liferay says it has been deployed correctly but then when I go to add the widget to a page it does not appear as available.

This is my environment:
- liferay-dxp-7.1.10.4-sp4

These are the steps I take:
- I execute: yo liferay-js
--- I answer the questions in the following way (sorry I don't write the statements of the questions literally):
--- Add localization support: Yes
--- Use JS Portlet Extender: No
--- You have local environment: Yes
--- Create sample code: Yes
- I execute: npm install
- I execute: npm run deploy

In the server log it says the portlet's deployed and started:
[BundleStartStopLogger:46] STARTED my-angular-portlet-bundle_1.0.0 [1019]

Whether I go to the Liferay control panel, or the gogo shell, it also says it's started. However, I don't see it as available in the category: "category.sample" which is the one I specified and it doesn't appear when I search for it using the text "angular" (the portlet is called "My Angular Portlet Bundle").

This is all I have done to try to solve it, without success:
- Deactivate the portlet and activate it again (from the control panel and from the gogo shell)
- Validate that the deployment directory used by the command: "npm run deploy" is done, is right
- Remove the tomcat's work and temp directories
- Make several changes to the portlet and make new deployments
- Delete all Liferay caches from the control panel
- Remove the build directory before deploying it
- Remove build and node_modules directories before deploying it

I don't know what else I can do...

​​​​​​​Thanks again.