Skip to content

Error Could not find TypeScript configuration file "tsconfig.build.json". #53

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hubaokun opened this issue Nov 21, 2022 · 3 comments

Comments

@hubaokun
Copy link

[blog-with-nestjs-and-angular-api development 5/5] RUN npm run build:
#0 0.615
#0 0.615 > [email protected] prebuild /thomas/src/app
#0 0.615 > rimraf dist
#0 0.615
#0 0.724
#0 0.724 > [email protected] build /thomas/src/app
#0 0.724 > nest build
#0 0.724
#0 1.667
#0 1.667 Error Could not find TypeScript configuration file "tsconfig.build.json". Please, ensure that you are running this command in the appropriate directory (inside Nest workspace).
#0 1.667
#0 1.692 npm ERR! code ELIFECYCLE
#0 1.693 npm ERR! errno 1
#0 1.698 npm ERR! [email protected] build: nest build
#0 1.698 npm ERR! Exit status 1
#0 1.698 npm ERR!
#0 1.698 npm ERR! Failed at the [email protected] build script.
#0 1.698 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
#0 1.705
#0 1.705 npm ERR! A complete log of this run can be found in:
#0 1.706 npm ERR! /root/.npm/_logs/2022-11-21T03_06_07_442Z-debug.log


failed to solve: executor failed running [/bin/sh -c npm run build]: exit code: 1

@novakand
Copy link

Same error. How to resolve this error?

@loutocky
Copy link

loutocky commented Feb 12, 2023

Same here - with docker-compose up.

@austenjt
Copy link

austenjt commented Oct 2, 2024

Same error with me. I tried to resolve/update dependencies, hoping that would fix this known bug that was supposedly fixed, but this is a tough one to figure out.

Also having a secondary issue trying to get on latest versions of some of the libs:

Will install @nestjs/[email protected], which is a breaking change
node_modules/@nestjs/serve-static/node_modules/path-to-regexp
  @nestjs/serve-static  2.1.0 - 2.2.2
  Depends on vulnerable versions of path-to-regexp
  node_modules/@nestjs/serve-static

2 high severity vulnerabilities

Its easy to reproduce. Can someone who has a few minutes verify? Although I am good with Angular and Typescript, I don't know enough about Nest to know what is really wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants