Closed precious-void closed 2 years ago
Probably, similar issue as described here #25427 but on v3.
NODE_OPTIONS=--trace-deprecation gatsby develop
should print stack trace that should help narrowing it down
@pieh here is the full log:
ERROR
(node:22460) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
at module.exports (C:\projects\onlixe\blog-insiders\insiders-template-react\node_modules\timed-out\index.js:9:17)
at EventEmitter.<anonymous>
(C:\projects\onlixe\blog-insiders\insiders-template-react\node_modules\got\index.js:244:5)
at Object.onceWrapper (events.js:300:26)
at EventEmitter.emit (events.js:210:5)
at makeRequest
(C:\projects\onlixe\blog-insiders\insiders-template-react\node_modules\cacheable-request\src\index.js:94:9)
at C:\projects\onlixe\blog-insiders\insiders-template-react\node_modules\cacheable-request\src\index.js:104:14
at runNextTicks (internal/process/task_queues.js:58:5)
at processImmediate (internal/timers.js:412:9)
Have the same errors after updating to gatsby 3
@shtelzerartem yarn why timed-out
should give you the package that uses timed-out, that's the culprit.
yarn why v1.22.4
[1/4] Why do we have the module "timed-out"...?
[2/4] Initialising dependency graph...
[3/4] Finding dependency...
[4/4] Calculating file sizes...
=> Found "timed-out@4.0.1"
info Reasons this module exists
- "got" depends on it
- Hoisted from "got#timed-out"
- Hoisted from "gatsby-plugin-sharp#imagemin-mozjpeg#mozjpeg#bin-build#download#got#timed-out"
info Disk size without dependencies: "16KB"
info Disk size with unique dependencies: "16KB"
info Disk size with transitive dependencies: "16KB"
info Number of shared dependencies: 0
Done in 0.88s.
npm list timed-out
itsmeow.dev@1.0.0 C:\Users\itsmeow\Desktop\Development\js\itsmeow.dev
+-- gatsby@3.0.3
| `-- got@8.3.2
| `-- timed-out@4.0.1
`-- gatsby-plugin-sharp@3.0.0
`-- imagemin-mozjpeg@9.0.0
`-- mozjpeg@7.0.0
`-- bin-build@3.0.0
`-- download@6.2.5
`-- got@7.1.0
`-- timed-out@4.0.1 deduped
Looks like old got
versions, timed-out
has been removed in newer versions of got
. Not sure how this could be solved. This only started happening after I added some remote file nodes for sharp as shown in this guide.
@wardpeet I have the same outputs as @itsmeow So yeah, it's related to got.
@wardpeet @pieh any comments on this issue?
As a workaround I did the following:
yarn upgrade
yarn add gatsby-plugin-sharp@3.1.0
yarn add gatsby-source-filesystem@3.0.0
Until this issue is fixed I locked this two plugin's version and now the error disappeared.
having the same issue here...!
Fetching Google Sheet [Function] 1ZGdsv0kXpAZQB0XM4APP9WX0iQUYqEq3Wjjp8fXnko8
ERROR
(node:17740) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
i have also tried with migrated to...
"gatsby-plugin-manifest": "^3.2.0",
"gatsby-plugin-sharp": "3.1.0",
"gatsby-source-filesystem": "3.0.0",
but that doesn't work for me.
my gatsby-node.js file:
const { createRemoteFileNode } = require(`gatsby-source-filesystem`)
exports.onCreateNode = async (
{
actions: { createNode },
node,
createContentDigest,
store,
cache,
reporter,
},
{ nodeName = `localFile` }
) => {
if (
node.internal.type === `googleMenuSheet` &&
node.itemCategoryImage !== null
) {
const fileNode = await createRemoteFileNode({
url: node.itemCategoryImage,
store,
cache,
createNode,
createNodeId: createContentDigest,
reporter,
})
if (fileNode) {
const fileNodeLink = `${nodeName}___NODE`
node[fileNodeLink] = fileNode.id
}
}
}
The same issue here. The gatsby-plugin-sharp > Got > Time-Out is using the _headers deprecated method. The @Daviidxo solution is working for me until having a better solution.
@KyleAMathews have some comments about this issue. thank you
dear friends, raising the version of got solves the issue for me.
yarn add got@latest
thanks to this blog... https://kikunantoka.com/2021/03/15--migrate-from-gatsby-v2-to-gatsby-v3/
Hiya!
This issue has gone quiet. Spooky quiet. 👻
We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! 💪💜
This issue still persists with everything up to date.
Hiya!
This issue has gone quiet. Spooky quiet. 👻
We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! 💪💜
Following the tutorial at https://www.gatsbyjs.com/docs/tutorial/part-3/ and this:
(node:73478) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated (Use
node --trace-deprecation ...
to show where the warning was created)
is blocking progress. The result is malformed markup and this:
GET http://localhost:8000/static/8fe15b6557b8e11d33c198a6a9024136/de790/E1oMV3QVgAIr1NT.webp instead of https://pbs.twimg.com/media/E1oMV3QVgAIr1NT?format=jpg&name=large
Getting the same error when upgraded
Also getting this issue. Still showing up with latest versions of everything.
This did fix it for now:
npm install got@latest
I ran into this issue while following the Gatsby v3 tutorial. Installing the latest got package also resolved the issue for me.
Hiya!
This issue has gone quiet. Spooky quiet. 👻
We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! 💪💜
dear friends, raising the version of got solves the issue for me.
yarn add got@latest
thanks to this blog... https://kikunantoka.com/2021/03/15--migrate-from-gatsby-v2-to-gatsby-v3/
This worked for me with this error: [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated Thank you so much!
npm install got@latest
indeed fixes the problem but it's not a clean solution.
"got" has to be upgraded in the plugin where it is defined as dependency.
NODE_OPTIONS=--trace-deprecation gatsby develop
should print stack trace that should help narrowing it down
i add the Environment variable in run app after, the error show in log4js package.
Hiya!
This issue has gone quiet. Spooky quiet. 👻
We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! 💪💜
Hey again!
It’s been 60 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it.
Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY
. Please feel free to comment on this issue or create a new one if you need anything else.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks again for being part of the Gatsby community! 💪💜
Description
After migration to Gatsby 3, I'm experiencing this deprecation warning, but cannot find, which module is causing it.
Environment