1 | initial version |
To activate source maps for the Angular Universal server, follow the below steps:
npm i --save-dev source-map-support
require('source-map-support').install();
--sourceMap
flag using the tsc command:tsc server.ts --sourceMap
node dist/server.js
The source maps should now be active for the Angular Universal server. Any errors or logs will now show the exact location of the source file where the error occurred.