In my similar case worked:
- When I put command I got error:
ng serve <- command
An unhandled exception occurred: Invalid or unexpected token
See "C:/(...)/angular-errors.log" for further details. <-output, hold ctrl and click this link (shortcut work on visual studio)
- under this link on first lines I clicked another link:
[error] C:/(...)/node_modules\source-map\lib\source-map-consumer.js:1
- I opened this file, inside where I found multi of null objects I deleted them and saved this file.
- again I used ng serve this time it works as expected.
This way worked for me in this case.