3

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.

americanslon
  • 4,048
  • 4
  • 32
  • 57
  • 3
    Suggested duplicate is not the same as my question. I was getting an error while the duplicate talks about the behavior not working. That said the duplicate did point me to what I was doing wrong. `preserveWhitespaces` goes into the `angularCompilerOptions` NOT `compilerOptions` of `tnsconfig`. I think that's not clear from the angular migration guide and this question should be reopened and properly answered. – americanslon Aug 15 '18 at 14:22
  • Did you find a solution for this ? Im getting the same error. – Abdu Manas C A Mar 29 '19 at 05:49

0 Answers0