question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

adapter-netlify missing dependency in output function

See original GitHub issue

Recently, I’ve been getting this weird error with adapter-netlify:

12:59:10 PM:   Error message
12:59:10 PM:   A Netlify Function is using "encoding" but that dependency has not been installed yet.
12:59:10 PM: ​
12:59:10 PM:   By default, dependencies inside a Netlify Function's "package.json" are not automatically installed.
  There are several ways to fix this problem:
12:59:10 PM:     - Removing your Function's "package.json" and adding the dependencies to the project's top-level "package.json" instead. This is the fastest and safest solution.
12:59:10 PM:     - Running "npm install" or "yarn" inside your Netlify Function in your build command.
12:59:10 PM:     - Adding the following plugin to your "netlify.toml":
12:59:10 PM: ​
12:59:10 PM:   [[plugins]]
12:59:10 PM:   package = "@netlify/plugin-functions-install-core"

Adding the suggested plugin doesn’t seem to help…

I have not been able to reproduce the issue in a minimal repo, but my repo is public and this commit reproduces the issue.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
samyoungnyccommented, Jul 3, 2021

I’m experiencing the exact same problem but my error code is:

A Netlify Function is using "exports" but that dependency has not been installed yet.

Tried to install ‘exports’ but got the following error:

npm ERR! notsup Unsupported engine for super@0.1.0: wanted: {"node":">= 0.6.0 < 0.7.0"} (current: {"node":"14.17.0","npm":"6.14.13"})

FWIW if anyone is interested I’d greatly appreciate help with this, I’m totally flummoxed.

1reaction
ixxiecommented, May 8, 2021

Right, I see your point. Well, I’ll leave it to better minds to think about the issues of bundling and dependencies…

Read more comments on GitHub >

github_iconTop Results From Across the Web

reactjs - How to fix missing dependency warning when ...
So just pass the function directly to useEffect as in 1. useEffect(fetchBusinesses, []) . const fetchBusinesses = useCallback(() => { ... }, []) ......
Read more >
Solution Import Fails due to missing dependency: Role
Hello,. I am attempting to import a solution from a Dev environment to a Test environment and am getting the following error:.
Read more >
NetSuite Applications Suite - listmissingdependencies
Lists the missing dependencies in the SuiteCloud project. ... References the custom alias you give to a specific account-role combination.
Read more >
Dependency Walker Frequently Asked Questions (FAQ)
Missing delay-load functions are not a problem as long as the calling DLL is prepared to handle the situation. Dependency Walker flags all...
Read more >
Apache Maven Dependency Plugin – dependency:analyze
apache. , and :::*-SNAPSHOT will match all snapshot artifacts. <outputXML>, boolean, 2.0-alpha-5, Output the xml for the missing dependencies ( ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found