-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted #265
Comments
I'm with same issue and using env:
It renders my data with SSR but error still remains on console. Below, you can find the error:
|
Having the same exact issue |
I'm unable to replicate the issue. Can you provide an example repository to ensure I get the correct setup to properly debug it? Probably I'm unable to replicate it since I'm not using webpack 😓 |
Yes of course, I created a temporary repository. Link to the repository: https://github.com/taychris/nextjs-supabase.git Required environment variables: Then you just run the |
thank you! 🙏 will still check today |
Same here have the problem too |
Same here. the problem occurs in multiple nextjs + supabase project . With different supabase-js version from @supabase/supabase-js -> "^2.38.2" to @supabase/supabase-js -> "^2.38.4", |
@filipecabaco this issue is also being investigated on I also posted a discussion question on |
thank you! yeah yesterday that was the point I've reached. Also tried to overwrite some of the webpack configurations on nextjs but all the "patches" felt more like really bad hacks 😞 ( i18next/next-i18next#1545 (comment) ) I've also verified what @John4E656F mentioned, this is happening in multiple versions including latest. I think that this PR might actually tackle this issue #263 |
Yep the |
Hey guys. Is there a quick workaround? Not sure what happened but after another npm install I've got the same problem with supabase/realtime-js and next.js. I was trying to downgrade supabase/realtime-js but no success. Basically all work with supabase/realtime-js is blocked. I hope somebody has a quick solution. Thanks. |
Alright, there is a quick workaround I found. Create file in your project /patches/node-gyp-build+4.7.0.patch with the following contents
Install https://www.npmjs.com/package/patch-package with Set up postinstall script: "scripts": {
"postinstall": "patch-package"
} Run |
The issue went away for me after installing the latest version. I had to delete yarn.lock and run |
@bmackio I tested with the latest version of It seems to be fixed in I solved it by adding the latest version to my dependencies and adding a resolution:
This is probably a bad idea but it works for now. |
Bug report
Describe the bug
I'm receiving this warning (wasn't receiving previous to reinstalling package.json):
When I uninstall
"@supabase/supabase-js": "^2.33.1",
from the app and remove the client code:The warning goes away.
To Reproduce
next dev
Expected behavior
I expect there to be no warning as nothing seems to be wrong with the code in node-gyp (however I could be wrong) which is added by
websocket
:System information
Additional context
Let me know if you have any insights or if you think this issue should be posted elsewhere. Thanks!
The text was updated successfully, but these errors were encountered: