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

857
Visualizações
NEXJS stripe v3:1 Uncaught (in promise) IntegrationError: Missing value for Stripe(): apiKey should be a string

v3:1 Uncaught (in promise) IntegrationError: Missing value for Stripe(): apiKey should be a string.

I'm getting this error in next JS when trying to use stripe pre-built checkout.

.env.local (full key replaced with ..... for stackoverflow)

NEXT_STRIPE_PUBLIC_KEY=pk_test_51Jl......

in function call

 const stripe = await loadStripe(process.env.NEXT_STRIPE_PUBLIC_KEY);

if I was to put the Publishable key directly in it works but from the env its not working for some reason

for example this would work

  const stripe = await loadStripe(`pk_test_51Jl...`);

I have the example below also and it didn't work.

const stripe = await loadStripe(`${process.env.NEXT_STRIPE_PUBLIC_KEY}`);
about 4 years ago · Juan Pablo Isaza
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