Problems with angular4 compiling es6

is not supported by browsers with slightly lower compiled files, and there are some new syntax unparsed, such as

like object.assign.
Mar.16,2021

remove the commentated polyfill in the polyfill.ts file from the beginning


if you want to be compatible with earlier versions of browsers, downgrade the compiled target ES version,
in tsconfig.json, change "target" to "ES5"

in compilerOptions.
Menu