DeprecationWarning: Invalid 'main' field in [...]/gatsby/dist/internal-plugins/functions/package.json' of 'index.ts' #31845
Labels
type: bug
An issue or pull request relating to a bug in Gatsby
Description
After a migration from v2 to v3 and fighting through a jungle of dependency conflicts, I finally arrived at a successful build.
There were (are) 3 deprecation warnings:
DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at [...]/]tslib/package.json. Update this package.json to use a subpath pattern like "./*".
DeprecationWarning: Invalid 'main' field in [...]/gatsby/dist/internal-plugins/functions/package.json' of 'index.ts'
([...] omitted for readability)
Number one got solved by manually
npm i got@latest
.The other two still persist.
This issue is meant to document number three as there apparently aren't any related issues so far.
The others are included for context.
Functions aren't used within the project (besides Netlify functions).
Environment:
The text was updated successfully, but these errors were encountered: