My Angular project was initially built on version 10.0.11.
After updating the project to version 10.2 using npm update
, I encountered several
Unable to fully load [...] for source-map flattening: Circular source file mapping dependency
errors during the build process.
To resolve this, I executed the following commands:
rm -rf node_modules package-lock.json
npm install
Despite resolving the initial issue, I am still facing difficulties with the build process. Upon completion, I receive the following error:
[...]
Generating ES5 bundles for differential loading...
ES5 bundle generation complete.
Generating localized bundles...
Localized bundle generation failed: Cannot read property 'value' of undefined
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6306074e02131323534d534d53">[email protected]</a> build-prod-da: `ng build --prod --configuration=production-da`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2742430a465757671709170917">[email protected]</a> build-prod-da script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/jde/.npm/_logs/2021-02-10T12_06_55_122Z-debug.log
I have been unable to identify the root cause of this issue. According to the "Angular update guide," transitioning from version 10.0 to 10.2 should have been straightforward.
The log file contains the following information:
{...
angular.json
{...
package.json
{...