Message Boards

Liferay AMD Loader: Unhandled failure

Raphael Bongomin, modified 4 Years ago.

Liferay AMD Loader: Unhandled failure

New Member Posts: 8 Join Date: 1/23/19 Recent Posts
I am playing around with Angular portlets for liferay. The issue is when I view the portlet in dev mode by running the script 'lnbs-start', it works well.
But when I build the portlet by running the script 'tsc && npm run copy-assets && liferay-npm-bundler' and then deploying it to liferay, I get the Liferay AMD Loader: Unhandled failure.
I have attached the log to this file to this message.
Also i put the code in the repository below. I am doing a sample walkthrough
https://github.com/bongoraph/liferayangularportlet.git
I can't seem to figure out what is happening.

Attachments:

thumbnail
Ivan Zaera, modified 4 Years ago.

RE: Liferay AMD Loader: Unhandled failure

Regular Member Posts: 119 Join Date: 10/1/13 Recent Posts
Hi:

Can you please have a look at this guide and see if it helps -> https://github.com/liferay/liferay-js-toolkit/wiki/How-to-troubleshoot-your-setups ?

Thanks.
Raphael Bongomin, modified 4 Years ago.

RE: Liferay AMD Loader: Unhandled failure

New Member Posts: 8 Join Date: 1/23/19 Recent Posts
I sorted this out. For some reason it had to do with the version of rxjs and typescript. All I did was ensure my rxjs version was 6.00 and typescript was 2.7.2