Universal: angular SSR using @nguniversal/express-engine package get this error (ERROR in error TS6053: File '/project/src/server.ngtypecheck.ts' not found.)

Created on 13 Aug 2020  路  6Comments  路  Source: angular/universal

I am using @nguniversal/express-engine to Server Side Rendering in angular.When I run $ npm build:ssr or $ npm run dev:ssr i get this error.

```error TS6053: File 'C:/dev/web/workspace/project/src/server.ts' not found.
error TS6053: File 'C:/dev/web/workspace/project/src/src/main.server.ngtypecheck.ts' not found.
error TS6053: File 'C:/dev/web/workspace/project/src/src/main.server.ts' not found.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:ssr: ng build --prod && ng run client:server:production
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:ssr script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.```

Most helpful comment

@urukai @rokulis
finaly problem solved.

Navigate to src/tsconfig.server.json

Change src/main.server.ts to main.server.ts,
Change server.ts to ../server.ts

link

All 6 comments

Same here. @mnfi3: Have you found a solution?

@urukai Unfortunately not yet

have someone found the solution @urukai @mnfi3

@rokulis not yet

@urukai @rokulis
finaly problem solved.

Navigate to src/tsconfig.server.json

Change src/main.server.ts to main.server.ts,
Change server.ts to ../server.ts

link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings