How to Use google-auth-library with Vite?

177 views Asked by At

When importing library error is thrown in console:

Uncaught TypeError: Class extends value undefined is not a constructor or null.............google-auth-library.js

Here's a StackBlitz reproduction: https://stackblitz.com/edit/vitejs-vite-1hhasb?file=src%2FApp.jsx&terminal=dev

New to bundlers as Vite so maybe I miss something in docs, but not clear of way to load such a common library.

I believe this question and this question is the same issue but Typescript.

0

There are 0 answers