Closed jahnreektor closed 4 years ago
Very interesting. So it seems that you have to move this line:
export * from './src/main.server';
From server/main.ts
to the server.ts
and everything will work fine (just tested). I'll update examples & schematics
I'm submitting a...
Current behavior
When I run
npm run prerender
from a new Angular 9 app, I get the following error:I cross-compared this Nest-based version of universal to the
@nguniversal/express-engine
version, and the non-Nest version works and has the same main.server.ts contents.Expected behavior
Prerender build should work.
Minimal reproduction of the problem with instructions
$ ng add @nestjs/ng-universal
$ npm run prerender