Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

242
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!