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:
- Create Angular project
- Install supabase-js
- Create angular service
- Import createClient with supabase-js on top of the newly created service
- Add that on top of the file, after the import
const supabase = createClient('yoururl', 'yourkey')
- Link service to component
- 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)
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 π¦π