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

244
Visualizações
util.inherits is not a function - problem with google-spreadsheet package in gatsby

I am attempting to add a module to my Gatsby project that reads the data from a Google spreadsheet. To this end I added the Google spreadsheet package - https://www.npmjs.com/package/google-spreadsheet - but I had a number of problems building once installed. I added the following code to my gatsby-node.js which fixed the build:

  actions.setWebpackConfig({
      resolve: {
        fallback: {
          fs: false,
          tls: false,
          net: false,
          path: false,
          zlib: false,
          http: false,
          https: false,
          stream: false,
          crypto: false,
          url: false,
          os: false,
          util: false,
          assert: false,
          child_process: false,       
        },
      },
  });

However, my web page now crashes on run when developing with gatsby develop, with the following error:

screeshot of error

It seems that other people have had similar problems with the jws dependence - see here.

If anyone has any ideas on a fix, they would be gratefully received.

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