Next.js Discord

Discord Forum

Critical dependency error with supabase

Unanswered
Northeast Congo Lion posted this in #help-forum
Open in Discord
Northeast Congo LionOP
âš  ../node_modules/node-gyp-build/index.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

Import trace for requested module:
../node_modules/node-gyp-build/index.js
../node_modules/utf-8-validate/index.js
./node_modules/ws/lib/validation.js
./node_modules/ws/lib/sender.js
./node_modules/ws/wrapper.mjs
./node_modules/@supabase/realtime-js/dist/module/RealtimeClient.js
./node_modules/@supabase/realtime-js/dist/module/index.js
./node_modules/@supabase/supabase-js/dist/module/index.js
./node_modules/@supabase/ssr/dist/index.mjs
./utils/supabase/server.ts
./app/login/page.tsx

Any idea how to fx it?

4 Replies

Toyger
looks like some problem with node-gyp version https://github.com/vercel/next.js/discussions/58626#discussioncomment-7655289 try to change it
Northeast Congo LionOP
Doesnt help..I have node-gyp-build 4.7.1
@Northeast Congo Lion Doesnt help..I have node-gyp-build 4.7.1
Toyger
what about supabase it's "^2.39.2" now
Northeast Congo LionOP
I have tried latest supabase...no resolution