14

Has anyone come across this non-breaking warning issue that you get with the npm package: @supabase/supabase-js

The warning message:

warn  - ./node_modules/cross-fetch/node_modules/node-fetch/lib/index.js
Module not found: Can't resolve 'encoding' in '/Users/maxsilva/Sites/kamapay/sasa-frontend/node_modules/cross-fetch/node_modules/node-fetch/lib'

Import trace for requested module:
./node_modules/cross-fetch/node_modules/node-fetch/lib/index.js
./node_modules/cross-fetch/dist/node-ponyfill.js
./node_modules/@supabase/supabase-js/dist/main/lib/fetch.js
./node_modules/@supabase/supabase-js/dist/main/SupabaseClient.js
./node_modules/@supabase/supabase-js/dist/main/index.js
./lib/supabaseClient.js
./app/[lng]/page.jsx
Mansueli
  • 6,223
  • 8
  • 33
  • 57
Max Silva
  • 477
  • 1
  • 7
  • 15
  • 1
    Does this answer your question? [Can't Resolve "encoding" Module Error While Using Nextjs-13 + Supabase](https://stackoverflow.com/questions/75438048/cant-resolve-encoding-module-error-while-using-nextjs-13-supabase) – thorwebdev Mar 16 '23 at 06:57

1 Answers1

22

As stated in the comment, you'll need to run this:

Vanilla NPM:

npm add -D encoding

PNPM:

pnpm add -D encoding 
Mansueli
  • 6,223
  • 8
  • 33
  • 57