-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
Uncaught ReferenceError: process is not defined #113
Comments
I think this may have been fixed by supabase/auth-js#37 What version of |
🎉 This issue has been resolved in version 1.1.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I updated supabase-js to 1.1.4 and checked that gotrue-js is 1.9.3 (wich is the case) and I'm still having this issue |
OK thanks for the update @Penkie . Reopening to investigate .. |
Could you please set this up on codesandbox or give some instructions? I've never used angular, this would probably take me an hour to figure out. Even better if you can start ad branch with an |
I tried with stackblitz, no problem I didn't have any errors. Tried also on codesandbox, loads of problems, maybe the dependencies not working. Anyway I created a repo with the Angular project inside : https://github.com/Penkie/supabase-js-debug-angular |
For what it's worth, I'm having the same issue in a svelte/sapper app. For now, I'm bypassing the error with I've setup a basic repro repo at https://github.com/laurentS/supabase-bug-repro-113
All it takes is importing the supabase client (see the last commit in the main branch). |
Looks like gotrue-js is using Can we maybe refactor gotrue-js to use e.g. default parameters when initializing the client instead? |
Error report from @thorwebdev |
Hey @soedirgo - just checking on this commit particularly these lines:
Is there a webpack plugin that can fix this issue for browser builds? Maybe this? |
Huh, I don't remember adding those... let me try that. |
So using the Webpack plugin above wouldn't fix it, because it only affects the browser build that's in @kiwicopple is there a specific reason to use |
That was just as a convenience, but looks like it's problematic. How are these usually handled in isomorphic libs? Using dotenv? |
I don't think libraries in general use |
For another data point, I was running into a similar issue, and applied the fix you put up in supabase/auth-js#42 locally, and it resolved the issue. |
OK , just pushing the new version - I'll keep it open this time until we've confirmed that it's resolved |
🎉 This issue has been resolved in version 1.3.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Should be working now, when trying laurentS's example above make sure to |
Updating to |
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 ⚡ |
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:
const supabase = createClient('yoururl', 'yourkey')
Expected behavior
No errors should happen
System information
The text was updated successfully, but these errors were encountered: