Hi, the ‘encoding’ package is a dependency of ‘node-fetch’ and has caused that error ‘on and off’ for a while now. Can you take a look at my suggestion here: Deploy failed due to an error in @netlify/plugin-functions-core plugin - #6 by Dennis and see if that works for you as well? At the very least, you won’t need to have a dependency’s dependency in your package.json file.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Deploy failed due to an error in @netlify/plugin-functions-core plugin | 11 | 5369 | December 8, 2020 | |
Error: Could not find “encoding” module in file, Netlify function | 23 | 8663 | October 22, 2021 | |
"Error: Cannot find module 'node-fetch'" when deploying function | 10 | 14315 | February 26, 2021 | |
Function compiled with netlify-lambda throwing a dependency error once deployed | 4 | 1993 | May 10, 2020 | |
Netlify Functions Can't find module | 10 | 4956 | December 10, 2020 |