This story is unavailable.

Thanks,

Make sure you have this configuration in your tsconfig.json file, the @angular/compiler-cli needs it:

  "angularCompilerOptions": {
"genDir": "./dist/ngfactory",
"entryModule": "./src/app/app.module#AppModule"
}

If the ngc (@angular/compiler-cli) command finds any error in your project, it will not generate the code in ‘./dist/ngfactory’

If the configurations are right, and the problem persists, I don’t know what could be wrong, try to clone this repo and see if the same error happens:

git clone https://github.com/evertonrobertoauler/cli-universal-demo
cd cli-universal-demo
npm run install
npm run start

Let me know if it solves your problem.

Like what you read? Give Éverton Roberto Auler a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.