Trying to compile an Angular project in Visual Studio Code with ng build
and serve it with ng serve
In both cases got the following error:
Only 'amd' and 'system' modules are supported alongside --outFile
Didn't use --outFile option for compiling and serving so don't really know where the error is.
Also tried to remove "module": "commonjs"
from tsconfig.spec.json as mentioned here but still not working.
- tsConfig.spec.json
Any idea on how to solve this error? Thanks!