You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing the scanner on certain dependencies, it crashes with error:
/usr/local/lib/node_modules/license-checker-rseidelsohn/lib/indexHelpers.js:163
currentExtendedPackageJson?.readme?.toLowerCase()?.indexOf('no readme data found') === -1
^
TypeError: currentExtendedPackageJson?.readme?.toLowerCase is not a function
at Object.storeReadmeInJsonIfExists (/usr/local/lib/node_modules/license-checker-rseidelsohn/lib/indexHelpers.js:163:45)
at recursivelyCollectAllDependencies (/usr/local/lib/node_modules/license-checker-rseidelsohn/lib/index.js:123:13)
at /usr/local/lib/node_modules/license-checker-rseidelsohn/lib/index.js:324:20
at Array.forEach (<anonymous>)
at recursivelyCollectAllDependencies (/usr/local/lib/node_modules/license-checker-rseidelsohn/lib/index.js:312:62)
at /usr/local/lib/node_modules/license-checker-rseidelsohn/lib/index.js:324:20
at Array.forEach (<anonymous>)
at recursivelyCollectAllDependencies (/usr/local/lib/node_modules/license-checker-rseidelsohn/lib/index.js:312:62)
at /usr/local/lib/node_modules/license-checker-rseidelsohn/lib/index.js:422:54
at /usr/local/lib/node_modules/license-checker-rseidelsohn/node_modules/read-installed-packages/read-installed.js:139:5
Node.js v21.6.1
In those packages the readme property contains a reference to some other typescript files. I would suggest to overwrite this property with the README.md file, since this is the behavior of the license-checker when the property is not set.
When executing the scanner on certain dependencies, it crashes with error:
This happens with the following dependencies:
This happens, because the license-checker does not check the type of the readme property.
indexHelper.js Line 159:
In those packages the readme property contains a reference to some other typescript files. I would suggest to overwrite this property with the README.md file, since this is the behavior of the license-checker when the property is not set.
The text was updated successfully, but these errors were encountered: