Critical dependency: require function is used in a way in which dependencies cannot be statically extracted #58626
Replies: 8 comments 9 replies
-
Could you please share the import line? |
Beta Was this translation helpful? Give feedback.
-
Hmm, he seems do override node-gyp-build
Is exactly where the problem comes from, im going to test it
"overrides": {
"node-gyp-build": "4.6.1"
}
A quinta, 23/11/2023, 20:56, De Jong Yeong ***@***.***>
escreveu:
… I found a forum that discusses something similar:
https://www.reddit.com/r/Supabase/comments/17xyj9t/supabase_oauth_with_nextjs_14_and_react_not/
I ran npm update and the error disappeared.
—
Reply to this email directly, view it on GitHub
<#58626 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARM5ELQOB7GQBOBE3YMJSNLYF6S6JAVCNFSM6AAAAAA7Q3UR72VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TMNJUG44DO>
.
You are receiving this because you commented.Message ID: <vercel/next.
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I have seen this with quite a few libraries, starting to happen with the later next.js 13.x versions. It is a huge detriment to developer experience as we get 100 lines like this in our build output:
Does anyone have a webpack config to get rid of those warnings? |
Beta Was this translation helpful? Give feedback.
-
if you use pnpm. I ran |
Beta Was this translation helpful? Give feedback.
-
Hi, node version 20.10.0
A domingo, 26/11/2023, 21:34, Martin Wawrusch ***@***.***>
escreveu:
… Thanks, we are on traditional NPM still. So looks like this is more of a
module packager problem. For reference, what's your node version?
—
Reply to this email directly, view it on GitHub
<#58626 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARM5ELTTVS2BK7LZEMI4BWTYGORWHAVCNFSM6AAAAAA7Q3UR72VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TMNZUGU3TQ>
.
You are receiving this because you commented.Message ID: <vercel/next.
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
any updates about this? we are get a similar error with a here is an example of the logs:
|
Beta Was this translation helpful? Give feedback.
-
Similar error with this library
|
Beta Was this translation helpful? Give feedback.
-
Happens the same on here replicate/replicate-javascript#345 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Good day,
Please help me to my problem when I import @vercel/postgres to my next js project this warning appear
Thank you!
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions