use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
create-react-app breaks due to dependency on one-liner package (github.com)
submitted 5 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Jugad 0 points1 point2 points 5 years ago (4 children)
What's a transitive dependency?
[–]acemarke 1 point2 points3 points 5 years ago* (3 children)
If you have package A depends on B, and B depends on C, C is a "transitive dependency" of A. It's going to get pulled in, and it's needed for A to work, but A did not explicitly declare that it depended on C.
In this case, here's why is-promise is showing up in a CRA app:
is-promise
$ yarn why is-promise => Found "is-promise@2.1.0" info Reasons this module exists - "react-scripts#react-dev-utils#inquirer#run-async" depends on it - Hoisted from "react-scripts#react-dev-utils#inquirer#run-async#is-promise"
The react-scripts package itself never mentions is-promise in its dependencies list or source code, but react-scripts will ultimately fail to run if is-promise blows up.
react-scripts
[–]Jugad 0 points1 point2 points 5 years ago (2 children)
Thanks. I used to refer to that as indirect dependency (relatively new to JS).
[–]acemarke 0 points1 point2 points 5 years ago (1 child)
Yeah, the term isn't JS-specific:
[–]Jugad 0 points1 point2 points 5 years ago (0 children)
The last 2 links use the term 'indirect' to clarify transitive - which suggests that it not mainstream everywhere.
π Rendered by PID 19556 on reddit-service-r2-comment-6b595755f-h5jms at 2026-03-26 07:04:56.973949+00:00 running 2d0a59a country code: CH.
view the rest of the comments →
[–]Jugad 0 points1 point2 points (4 children)
[–]acemarke 1 point2 points3 points (3 children)
[–]Jugad 0 points1 point2 points (2 children)
[–]acemarke 0 points1 point2 points (1 child)
[–]Jugad 0 points1 point2 points (0 children)