pastelsky / bundlephobia

🏋️ Find out the cost of adding a new frontend dependency to your project
https://bundlephobia.com
MIT License
8.98k stars 222 forks source link

<bundlephobia inaccessible>: <@jsany/cli-kit> fails to <get> #387

Open daolou opened 4 years ago

daolou commented 4 years ago

Package name

@jsany/cli-kit

Entire (stringified) error that I see in my browser console

use size: npm bundle size (scoped version)

npm repo: https://www.npmjs.com/package/@jsany/cli-kit

npm bundle size (scoped version) npm bundle size (scoped version)

https://img.shields.io/bundlephobia/minzip/@jsany/cli-kit/1.1.1?style=flat-square https://img.shields.io/bundlephobia/minzip/@jsany/cli-kit/latest?style=flat-square

wopian commented 4 years ago

The badges error as one of your package dependencies doesn't list it's dependencies properly and bundlephobia returns an error instead.

https://bundlephobia.com/result?p=@jsany/cli-kit

This package (or this version) uses atpl, babel-core, bracket-template, dot, dustjs-linkedin, eco, ect, ejs, haml-coffee, hamlet, hamljs, hogan.js, htmling, jazz, jqtpl, just, liquor, lodash, marko, mote, mustache, plates, ractive, react, react-dom, slm, teacup, templayed, toffee, twig, underscore, vash, velocityjs, walrus and whiskers, but does not specify them either as a dependency or a peer dependency

The package causing the issue: https://www.npmjs.com/package/consolidate

daolou commented 4 years ago

Extremely grateful

daolou commented 4 years ago

@wopian

Is there a solution to this problem(The badges error) ?

daolou commented 4 years ago

I can never install an unused dependent packages(atpl babel-core bracket-template ...) to peerDependencies

yarn add -P atpl babel-core bracket-template ...

After all, it is always bad to install some useless dependency packages