supabase-js: Uncaught ReferenceError: process is not defined

Bug report

Describe the bug

Using Angular, creating the client produce this error on the console: Uncaught ReferenceError: process is not defined

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Create Angular project
  2. Install supabase-js
  3. Create angular service
  4. Import createClient with supabase-js on top of the newly created service
  5. Add that on top of the file, after the import const supabase = createClient('yoururl', 'yourkey')
  6. Link service to component
  7. See result in console

Expected behavior

No errors should happen

System information

  • OS: MacOS Big Sur
  • Browser (if applies) Firefox
  • Version of supabase-js: v1.1.3
  • Version of Node.js: v12.18.3

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 21 (15 by maintainers)

Most upvoted comments

Updating to 1.3.2 did fix the problem for me.

πŸŽ‰ This issue has been resolved in version 1.3.2 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

thanks for the patience everyone! We’re super busy, so a bit slow getting to some of these items. I’ll close this, and feel free to reopen if you have any issues

And thanks for checking out Supabase ⚑

For another data point, I was running into a similar issue, and applied the fix you put up in https://github.com/supabase/gotrue-js/pull/42 locally, and it resolved the issue.

πŸŽ‰ This issue has been resolved in version 1.1.4 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€