Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gatsby-source-filesystem gives depreciation warning on nodejs 12 #20529

Closed
erik-am opened this issue Jan 10, 2020 · 1 comment
Closed

gatsby-source-filesystem gives depreciation warning on nodejs 12 #20529

erik-am opened this issue Jan 10, 2020 · 1 comment

Comments

@erik-am
Copy link

erik-am commented Jan 10, 2020

Description

Calling createRemoteFileNode() in gatsby-source-filesystem results in the following depreciation warning on node 12.

(node:94963) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

I tried the latest version of gatsby-source-filesystem.

The warning is written to STDERR which makes our build pipeline fail.

Steps to reproduce

  1. Make a plugin that calls createRemoteFileNode() to download a remote file for certain nodes.
  2. Add a page that requires the node so that the plugin is triggered.
  3. Run gatsby develop or gatsby build to get the depreciation warning.

Expected result

No depreciation warning.

Actual result

We get a depreciation warning, which makes our build pipeline fail:

(node:94963) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

Environment

 System:
    OS: macOS 10.15
    CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.14.1 - /usr/local/opt/node@12/bin/node
    Yarn: 1.21.1 - /usr/local/bin/yarn
    npm: 6.13.4 - /usr/local/opt/node@12/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Chrome: 79.0.3945.117
    Firefox: 71.0
    Safari: 13.0.2
  npmGlobalPackages:
    gatsby-cli: 2.8.23
    gatsby: 2.13.33

@LekoArts
Copy link
Contributor

Thank you for opening this!

This is a duplicate of #18433 and will be fixed by #18857

We're marking this issue as answered and closing it for now but please feel free to comment here if you would like to continue this discussion. We also recommend heading over to our communities if you have questions that are not bug reports or feature requests. We hope we managed to help and thank you for using Gatsby!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants