Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

336
Visualizações
How to deploy monorepo powered by turborepo to Vercel?

Recently, Turborepo is acquired by Vercel. So I was excited to experiment with that. I created a turbo repo project by running

pnpx create-turbo

Then I tried to deploy it to Vercel following the documentation here.

It is failing with error "could not found tsconfig/nextjs.json"

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

The error was actually caused at tsconfig.json file inside the web module.

The structure of the repo is as follows

- apps
  - docs
  - web
- packages
  - config
  - tsconfig
  - ui

The content of apps/web/tsconfig.json is

{
  "extends": "tsconfig/nextjs.json",
  "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
  "exclude": ["node_modules"]
}

Ideally, it should have been able to work as turbo should understand that.

I could finally deploy the web project with following settings on Vercel

ROOT DIRECTORY: /app/web
BUILD COMMAND: cd ../.. && yarn build
INSTALL COMMAND: cd ../.. && yarn install

Update: (Answer from comments and updated docs)

  • you need to override the Install Command with npm install --prefix=../.. (step 3.5).
about 4 years ago · Juan Pablo Isaza Relatório

0

Please upvote Camilo's comment under mayank1513's post as the source (I'm just reposted for visibility and I didn't see it at first and wasted several hours)

If you're using NPM on Vercel with Turborepo please follow this step from Vercel. If you don't you'll get build errors saying roughly "can't find package".

Hope this helps!

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda