When I try to build my project running the following command:
ng build --environment=prod --aot=false --output-pa
check if you have node_modules folder on project folder.