I followed the angular 5 to 6 migration guide (https://update.angular.io/).
One of the things it tells you to do is to set compiler option called preserveWhitespaces
I did it for both main tsconfig.json
as well as tsconfig.app.json
and both throw TS5023: Unknown compiler option 'preserveWhitespaces'.
during the compilation.