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

bundle-phobia lodash gives <!DOCTYPE "... is not valid JSON #66

Open
ericop opened this issue Mar 26, 2024 · 3 comments
Open

bundle-phobia lodash gives <!DOCTYPE "... is not valid JSON #66

ericop opened this issue Mar 26, 2024 · 3 comments
Labels
Bug 🐛 Ooops, something is not working as it should

Comments

@ericop
Copy link

ericop commented Mar 26, 2024

Given:
npm install -g bundle-phobia-cli

When:
entering
bundle-phobia lodash react

Unexpected result:

(node:14389) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
✖ resolving lodash failed: invalid json response body at https://bundlephobia.com/api/size?package=lodash reason: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
bundle-phobia failed: invalid json response body at https://bundlephobia.com/api/size?package=lodash reason: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

Working example:
entering
bundle-phobia qs

Expect and actual result:

(node:14466) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
ℹ qs (6.12.0) has 1 dependencies for a weight of 35.9KB (10.95KB gzipped)
@AdrieanKhisbe AdrieanKhisbe added the Bug 🐛 Ooops, something is not working as it should label Apr 3, 2024
@AdrieanKhisbe
Copy link
Owner

Hello @ericop,
what node and os are you using?

@ericop
Copy link
Author

ericop commented Apr 3, 2024

macOS Sonoma 14.4.1
node v21.6.1
npm 10.5.0

@ericop
Copy link
Author

ericop commented Apr 3, 2024

as of today bundle-phobia lodash react is working as expected:

(node:2791) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
ℹ lodash (4.17.21) has 0 dependencies for a weight of 69.79KB (24.42KB gzipped)
ℹ react (18.2.0) has 1 dependencies for a weight of 6.43KB (2.51KB gzipped)

ℹ total (2 packages) has 1 dependencies for a weight of 76.23KB (26.93KB gzipped)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Ooops, something is not working as it should
Projects
None yet
Development

No branches or pull requests

2 participants