-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: Master
-
Fix Version/s: Master
-
Component/s: AMD Module Loader
-
Labels:None
-
Fix Priority:3
-
Epic Link:
-
Sprint:S02E11 - The Big Lebowski, S02E12 - Donnie Darko
-
Git Pull Request:
If a request is made in the browser for a missing JS module like:
Liferay.Loader.require(["a-missing-module@1.0.0")
the server replies with an empty resolvedModules array which finally makes the loader fail.
The server should return a resolution error in this case.
Steps to reproduce:
- Start portal
- Deploy attached JAR
- Add a "My project" portlet to the page
Expected results:
- An error should be shown in the browser console stating that some modules (named "perico" and "juanillo") could not be loaded:
Actual results:
- A cryptic error is shown in the browser console with no information about the missing modules