adapter-netlify missing dependency in output function
See original GitHub issueRecently, 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:
- Created 2 years ago
- Comments:9 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Right, I see your point. Well, I’ll leave it to better minds to think about the issues of bundling and dependencies…