Trying to generate the translation file in my Angular project using the command
ng extract-i18n --output-path src/translate
, I encountered this error message:
\ Generating browser application bundles (phase: building)...(node:3224) UnhandledPromiseRejectionWarning: Error: Invalid mapping: {"generated":{"line":1
21955,"column":0},"source":"webpack://./node_modules/packages/reactive-form-validators/decorators/alpha.decorator.ts","original":{"line":7,"column":-16},
"name":null}
at SourceMapGenerator_validateMapping [as _validateMapping] (C:\Users\user\Documents\workspace xxx\pjtv0-front-end\node_modules\webpack\node_modul
es\source-map\lib\source-map-generator.js:298:13)
at SourceMapGenerator_addMapping [as addMapping] (C:\Users\user\Documents\workspace xxx\pjtv0-front-end\node_modules\webpack\node_modules\source-m
ap\lib\source-map-generator.js:110:12)
at C:\Users\user\Documents\workspace xxx\pjtv0-front-end\node_modules\webpack\node_modules\source-map\lib\source-node.js:351:13
at SourceNode_walk [as walk] (C:\Users\user\Documents\workspace xxx\pjtv0-front-end\node_modules\webpack\node_modules\source-map\lib\source-node.j
s:230:9)
at SourceNode_walk [as walk] (C:\Users\user\Documents\workspace xxx\pjtv0-front-end\node_modules\webpack\node_modules\source-map\lib\source-node.j
s:226:13)
at SourceNode_walk [as walk] (C:\Users\user\Documents\workspace xxx\pjtv0-front-end\node_modules\webpack\node_modules\source-map\lib\source-node.j
s:226:13)
at SourceNode_walk [as walk] (C:\Users\user\Documents\workspace xxx\pjtv0-front-end\node_modules\webpack\node_modules\source-map\lib\source-node.j
s:226:13)
at SourceNode_walk [as walk] (C:\Users\user\Documents\workspace xxx\pjtv0-front-end\node_modules\webpack\node_modules\source-map\lib\source-node.j
s:226:13)
at SourceNode_walk [as walk] (C:\Users\user\Documents\workspace xxx\pjtv0-front-end\node_modules\webpack\node_modules\source-map\lib\source-node.j
s:226:13)
at SourceNode_toStringWithSourceMap [as toStringWithSourceMap] (C:\Users\user\Documents\workspace xxx\pjtv0-front-end\node_modules\webpack\node_mo
dules\source-map\lib\source-node.js:342:8)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:3224) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a
catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI fl
ag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:3224) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will termin
ate the Node.js process with a non-zero exit code.
| Generating browser application bundles (phase: sealing)...
Even after updating Angular modules to the latest version and attempting npm fixes, the issue persists. Any ideas for a solution?