-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Class extends value undefined is not a constructor or null #1632
Comments
@frama21 this looks more like an issue with the bundler or |
I cannot seem to reproduce this issue - let me know if there's a specific line or class in the auth library I can assist in debugging. |
I'm having the same error with my Angular 17 project. Step to reproduce:
const serviceAccountAuth = new JWT({}); |
Is it the issue caused by the (google-auth-library) library still uses the require while others (e.g., @googleapis/sheets v4 or a vuejs component) depend on it have been changed to use the import for modules loading? Uncaught (in promise) TypeError: Class extends value undefined is not a constructor or null in this case the events_1 is null due to the events module has not been imported/loaded const events_1 = require("events"); There is no reference to "events" package in https://github.com/googleapis/google-auth-library-nodejs/blob/main/package.json. Where I can get the "events" module/package @danielbankhead? |
Seeing many warning message in the terminal at building the vue app, many lines from google-auth-library likes [plugin:vite:resolve] [plugin vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "[root_folder]/node_modules/google-auth-library/build/src/auth/googleauth.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details. I realize that it is issue relates to https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility |
Environment details
google-auth-library
version: 9.0.0Steps to reproduce
when i comment the const client the error is not showing
The text was updated successfully, but these errors were encountered: