Let a globally installed package use a locally installed version of itself if available
by sindresorhusJavaScript
Last 12 weeks · 0 commits
4 of 6 standards met
I got this error while executing npm run test. I recently upgrade all versions of node, next.js, react.js and jest and I didn't have this error before. The test checks the text inside a react component located in a jsx file. I didn't find anything about this error on the net. !Capture Does it really relies on your package ? Do you know what to do ?
Motivation The current type declaration on DefinitelyTyped of this package does not accurately reflect the function's return type. See here. Why The most recent version of this function (as well as the oldest ones) is not designed to return just the boolean type. In the line, it can either return: if the first or third operand is false. if the second operand is undefined. whatever is exported from of the last operand, given all the previous values are truthy.
Repository: sindresorhus/import-local. Description: Let a globally installed package use a locally installed version of itself if available Stars: 155, Forks: 13. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v3.2.0 (1y ago). Open PRs: 0, open issues: 2. Last activity: 1y ago. Community health: 85%. Top contributors: sindresorhus, mxmul, coreyfarrell, Zen-cronic, Kei-Ito, Richienb, yingning2021, yKanon.