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 | 5308 | December 8, 2020 | |
Error: Could not find “encoding” module in file, Netlify function | 23 | 8625 | October 22, 2021 | |
Got Error when using netlify-cli Deploy | 1 | 507 | December 15, 2019 | |
@netlify/plugin-functions-core fails on dependencies that are bundled already | 2 | 2097 | September 22, 2020 | |
Build Error: Error prepping functions | 3 | 665 | August 29, 2019 |