DEV Community

piotrwoch
piotrwoch

Posted on

Integrating Angular 9 app with Liferay 7.x portlet

Hello!

I have an Angular 9 app that I would like to make accessible via Liferay 7.x portlet.

When I follow these steps, deploy my portlet and try to render it, I run into issues (reported as JavaScript errors in the browser console):

  1. "Can't bind to 'X' since it isn't a known property of 'Y'.
  2. "'X' is not a known element:

A. If 'X' is an Angular component, then verify that it is part of this module.

B. If 'X' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message."
The problem is that as far as I can see the modules in question are properly annotated and listed as exports, declarations, etc.

I would appreciate help with resolving these issues. I am happy to jump on a Zoom to demonstrate the details of my config.

Thank you!

Tiugo image

Modular, Fast, and Built for Developers

CKEditor 5 gives you full control over your editing experience. A modular architecture means you get high performance, fewer re-renders and a setup that scales with your needs.

Start now

Top comments (0)

Image of Datadog

Get the real story behind DevSecOps

Explore data from thousands of apps to uncover how container image size, deployment frequency, and runtime context affect real-world security. Discover seven key insights that can help you build and ship more secure software.

Read the Report

👋 Kindness is contagious

Value this insightful article and join the thriving DEV Community. Developers of every skill level are encouraged to contribute and expand our collective knowledge.

A simple “thank you” can uplift someone’s spirits. Leave your appreciation in the comments!

On DEV, exchanging expertise lightens our path and reinforces our bonds. Enjoyed the read? A quick note of thanks to the author means a lot.

Okay