getUser error in supabase-js v2 server side

I get the following error:
  • Node v16 locally using supabase-js v2
  • Node v18 Gatsby Cloud using supabase-js v2
    I do not get the following error:
  • Noce v18 locally using supabase-js v2
  • Node v16 locally using supabase-js v1
  • Node v18 Gatsby Cloud using supabase-js v1
The error:
(node:9) UnhandledPromiseRejectionWarning: TypeError: Right-hand side of 'instanceof' is not an object at /tmp/55fe830c-c9b9-5321-be71-95aa92bd9b63/index.js:18036:17 at Generator.next () at fulfilled (/tmp/55fe830c-c9b9-5321-be71-95aa92bd9b63/index.js:18025:58) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:95:5)

16:16:13 PM:
(node:9) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 28)
Was this page helpful?