Blog

Failed to load module script: The server responded with a non-JavaScript MIME type of “text/html” in Nginx when deploying an Angular application

Failed to load module script: The server responded with a non-JavaScript MIME type of “text/html”. Strict MIME type checking is enforced for module scripts per HTML spec. This happens in Google Chrome and any modern browser that supports JavaScript modules. For example when “building” the Angular 8+ app, this file is usually generated, that is […]

Read More

Stencil.js error when running the “build” script: TypeError: Cannot read property ‘toString’ of undefined at e.getRenderedHash [Solved]

If you are getting this error when running yarn build or npm run build that is probably because the versions of both the stencil core and stencil router are outdated. For solving this issue, just update both dependencies: Here are my current dependencies, just for reference: If you are interested in knowing more about this […]

Read More

Build a blog with Carbon LDP and Angular – Part 1

In this tutorial, we are going to be creating an awesome blog engine using two great tools: Angular and Carbon LDP. This tutorial was inspired by the official one published by the Carbon LDP team in https://carbonldp.com/blog/2018/11/23/build-a-blog-with-carbon-ldp-and-react-part-1/ In order to successfully go through this tutorial, JavaScript and CSS knowledge is required. Complementary source code is available […]

Read More

Configure two websites in the same instance in Liferay 7

One of the most common configurations we want to apply in Liferay is to serve two or more websites with the same Liferay instance. However, configuring Liferay in the right way to serve our websites and generate the links properly is not an easy and immediate task. This guide contains a set of steps you […]

Read More

¡Y sigo siendo feliz a tu lado!

Hola mi amor, Te escribo estas palabras literalmente desde el otro lado del mundo. Hoy me tocó estar en el viejo continente y mira que video he encontrado: Fue el video de por allá de Diciembre de 2015 cuando te pedí que fueras mi esposa, hoy estamos ya rumbo a nuestro 3er. aniversario como esposos […]

Read More

How to set JAVA_HOME in Mac OS X High Sierra

This post describes how to configure the JAVA_HOME environment variable required by many enterprise tools, frameworks, and CMSes. For instance, Liferay, Tomcat, etc. will use this variable to work properly. In case you have changed your default shell (Bash) that comes with OS X out-of-the-box, please read How to set JAVA_HOME in Mac OS X High […]

Read More