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

124
Visualizações
Optional chaining in Azure function with node 14.18.3

I'm getting syntax errors with optional chaining while running an Azure function locally. Using Azure Functions Core Tools 4.0.3971 & Node 14.18.3:

Worker was unable to load function foo: 'SyntaxError: Invalid or unexpected token'

It points to the dot in the optional chaining code as if the syntax is not supported: variable?.prop

I have Node 14.18.3 installed on my machine, which I understand should support this. Wondering if there is something I could be missing in terms of telling the Azure function to use that Node version?

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

0

I would say is a syntax error in your code. I believe this happened to me before, and it is nothing on AFCT nor the AF configuration.

I believe it happened that I did a require wrongly or something along those lines.

Perhaps running eslint on it will help.

about 4 years ago · Juan Pablo Isaza Relatório

0

This turned out to be another module (CJS) causing the syntax error when trying to include the optional chaining.

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