GOOGLE_SDK_NODE_LOGGING error on edge function

I am following the Supabase way to utilize FCM (https://supabase.com/docs/guides/functions/examples/push-notifications?queryGroups=platform&platform=fcm). But when I include the JWT library as mentioned it errors out
Bad line:
import { JWT } from 'npm:google-auth-library'

Error (that comes from that include):
event loop error: TypeError: Cannot read properties of undefined (reading 'GOOGLE_SDK_NODE_LOGGING')
at Object.log (file:///var/tmp/sb-compile-edge-runtime/node_modules/localhost/google-logging-utils/0.0.2/build/src/logging-utils.js:356:36)
at Object.<anonymous> (file:///var/tmp/sb-compile-edge-runtime/node_modules/localhost/gcp-metadata/6.1.1/build/src/index.js:52:20)
at Object.<anonymous> (file:///var/tmp/sb-compile-edge-runtime/node_modules/localhost/gcp-metadata/6.1.1/build/src/index.js:409:4)
at Module._compile (node:module:731:34)
at Module._extensions..js (node:module:745:10)
at Module.load (node:module:656:32)
at Module._load (node:module:524:12)
at Module.require (node:module:675:19)
at require (node:module:790:16)
at Object.<anonymous> (file:///var/tmp/sb-compile-edge-runtime/node_modules/localhost/google-auth-library/9.15.1/build/src/auth/googleauth.js:31:21)
Send Push Notifications to your React Native iOS and Android apps using Expo.
Was this page helpful?