question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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/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! client@0.0.0 build:ssr: ng build --prod && ng run client:server:production
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the client@0.0.0 build:ssr script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.```

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:6

github_iconTop GitHub Comments

4reactions
mnfi3commented, Oct 1, 2020

@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

1reaction
urukaicommented, Sep 21, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

File '/project/src/server.ngtypecheck.ts' not found.) - Stack ...
angular SSR using @nguniversal/express-engine package get this error (ERROR in error TS6053: File '/project/src/server.ngtypecheck.ts' not found ...
Read more >
[Solved]-Upgrade angular 7 to 8, ERROR - appsloveworld.com
angular SSR using @nguniversal/express-engine package get this error (ERROR in error TS6053: File '/project/src/server.ngtypecheck.ts' not found.) ... Angular 9 " ...
Read more >
File '/project/src/server.ngtypecheck.ts' not found. - Bountysource
angular SSR using @nguniversal/express-engine package get this error (ERROR in error TS6053: File '/project/src/server.ngtypecheck.ts' not found ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found