After attempting to load the app from the root directory of our server, it became clear that this was not a practical solution due to the way our application uses pretty URLs. For instance, trying to access a page with a URL like
http://www.website.com/modules/worker/person/1/1/1
caused system.js to search in the folder /modules/worker/person/1/1
instead of the root directory.
To address this issue, the decision was made to set baseURL:"/"
so that the modules would be loaded correctly based on the root directory.
However, a new problem arose with this solution - node modules were not being loaded properly. Instead of looking in the node_modules directory, system.js was searching in the root directory, resulting in paths like /angular2/http.js
instead of /node_modules/angular2/http.js
.
Even after switching from "node" module compilation to "classic", the issue persisted. Any ideas on how we should proceed?