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

(node:428317) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated #427

Open
mmattel opened this issue Aug 1, 2023 · 2 comments

Comments

@mmattel
Copy link

mmattel commented Aug 1, 2023

Using node v16.13.2

I started to get error messages when running yarn serve:

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

There are 5 occurrences of ._headers in the final build of asciidoctor-kroki.js.

Doing some research, a possible fix can be done by replacing:
._headers with .getHeaders()

@ggrossetie
Copy link
Member

I think it comes from https://github.com/browserify/http-browserify
Having said that, are you using https://github.com/asciidoctor/asciidoctor-kroki/blob/master/dist/browser/asciidoctor-kroki.js in a Node environment? This file should only be used in a browser environment.

@mmattel
Copy link
Author

mmattel commented Sep 18, 2024

Sorry for the late reply.

We are using a package.json file in our doc repos root defining scripts like building the docs or "serve": "http-server public/ -d -i" which starts a mini webserver to see the rendered result.

This issue above came up using the serve command which is triggered via yarn serve.

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

No branches or pull requests

2 participants