After updating my global angular-cli version to 8, I encountered an error in IE11 when building my project in production mode. Interestingly, the project works fine in Chrome.
The error message for the production version is as follows:
https://i.sstatic.net/AFxNY.png I also checked the project in my local development environment and the issue persisted there too.
https://i.sstatic.net/j7gG4.png
The error is being thrown at this specific line in the vendor.js file:
const isPresent = (value) => value !== null && value !== undefined;
Here is a look at my package.json:
{
// package.json content
}
My polyfills.ts file contains necessary browser polyfills for Angular along with application imports:
{
// polyfill.ts content
}
Node Version: v12.16.0 Angular Cli Version: Local -- 6.2.9 and Global -- 8.3.25
Your insight and assistance on resolving this error would be greatly appreciated. Thank you!