Hey, really glad this guide exists, I’m looking to do just this with my Angular 4 app. I am getting an error when pushing to Heroku:
ERROR in Error encountered resolving symbol values statically. Could not resolve @angular/cdk relative to /tmp/build_90df4c63b12c7ed4d1006939fd108a8f/node_modules/@angular/material/typings/index.d.ts., resolving symbol MdCoreModule in /tmp/build_90df4c63b12c7ed4d1006939fd108a8f/node_modules/@angular/material/typings/index.d.ts, resolving symbol MdCoreModule in /tmp/build_90df4c63b12c7ed4d1006939fd108a8f/node_modules/@angular/material/typings/index.d.ts
remote:
remote: ERROR in ./src/main.ts
remote: Module not found: Error: Can’t resolve ‘./$$_gendir/app/app.module.ngfactory’ in ‘/tmp/build_90df4c63b12c7ed4d1006939fd108a8f/src’
remote: @ ./src/main.ts 3:0–74
remote: @ multi ./src/main.ts
I believe this is a post install error, because when I run the build command locally, aot or not, it passes and I can server through server.js . Does this look familiar? Thanks for any help!