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

287
Visualizações
Nextjs 12: why activation experimental react concurrent features will disable API routes?

I recently installed Nextjs v12. I created some Api routes (for example "/api/products"). these routes work correctly, but when I make concurrentFeatures: true in next.config.ts, Api routes don't work. the displayed error in console is error - Error: Cannot find module for page: /api/products

here is my next.config.ts file content:

module.exports = {
  reactStrictMode: true,
  experimental: {
    concurrentFeatures: true
  }
}

here are my directories:

pages
----api
--------products
------------index.ts
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I searched nextjs issues in github and found this issue: https://github.com/vercel/next.js/issues/30586

this issue is already open and labeled as a bug. so this is a bug of nextjs and probably will be fixed in the future.

-- UPDATE --

now the https://github.com/vercel/next.js/issues/30586 issue is closed. in nextjs v12.0.4-canary.3 and higher, this problem is fixed

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