-
-
Notifications
You must be signed in to change notification settings - Fork 943
Closed
Labels
Description
Using the @trigger.dev/sdk in a Next.js project produces the following warning:
- warn ./node_modules/node-fetch/lib/index.js
Module not found: Can't resolve 'encoding' in '/Users/eric/code/triggerdotdev/trigger.dev-examples/latest-packages/node_modules/node-fetch/lib'
It turns out this is a pretty widely experienced warning that doesn't actually effect anything in Next.js. See this supabase-js issue:
encoding is an optional dependency of node-fetch and so there is no issue with it missing.
If you would like to get rid of this warning, just run:
npm add encoding -DTo add the encoding dependency to your dev deps. Of course this won't stop this warning from appearing from production builds, so you can also do:
npm add encodingTotomInc