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.
Asked: 2023-05-31 18:44:59 +0000
Seen: 7 times
Last updated: May 31 '23