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
At present, attempting to download the "tar" file from the Package List on the homepage does not work as expected. Clicking on the link only opens a new tab, but no download action occurs.
The root cause of this problem lies in the Link Component within @verdaccio/ui-components. It lacks a necessary onClick prop, preventing the execution of the handleDownload function in Package.tsx.
To Reproduce
Step 1: After publishing a package (if the list is empty) and potentially reloading the page, you navigate to a package's details page.
Step 2: On this page, you click the "Download tar" (Download Icon)
Step 3: Instead of initiating the download, a new tab opens, and the URL has a "#" appended to it.
Expected behavior
Should download the latest tar file of the selected package.
Screenshots, server logs, package manager log
Package.tsx try to create the Component Link with property onClick
Problem, there is nor supported prop onClick in Link
…venting handleDownload call in Package.tsx #3988 (#3989)
* fix: Add onClick handler in Link component
In the "Link" component, the onClick handler was not provided,
leading to the absence of a download action in the Package.tsx
renderDownloadLink component.
* Removed "external" attribute from "renderDownloadLink"
The "external" attribute is unnecessary in this context
since the download action is triggered by the "handleDownload" callback.
* added changeset for @verdaccio/ui-components
Hey @juanpicado,
At the moment, the fix is functional exclusively for version 7.x, with versions 5.x and 6.x remaining unaffected. Should the dependency be adjusted for broader compatibility?
update core dependencies (7.x) no breaking changes, just internal bump up to prepare a major release (6.x)
🐛 fix fix: local search keyword undefined errors #3992
🐛 fix Missing "onClick" prop in @verdaccio/ui-components Link component preventing handleDownload call in Package.tsx #3988#3989
Your Environment
Describe the bug
At present, attempting to download the "tar" file from the Package List on the homepage does not work as expected. Clicking on the link only opens a new tab, but no download action occurs.
The root cause of this problem lies in the
Link
Component within@verdaccio/ui-components
. It lacks a necessaryonClick
prop, preventing the execution of thehandleDownload
function inPackage.tsx
.To Reproduce
Expected behavior
Should download the latest tar file of the selected package.
Screenshots, server logs, package manager log
Package.tsx try to create the Component
Link
with propertyonClick
Problem, there is nor supported prop
onClick
inLink
Configuration File (cat ~/.config/verdaccio/config.yaml)
Environment information
Debugging output
$ NODE_DEBUG=request verdaccio
display request calls (verdaccio <--> uplinks)$ DEBUG=verdaccio* verdaccio
enable extreme verdaccio debug mode (verdaccio api)$ npm -ddd
prints:$ npm config get registry
prints:Contribute to Verdaccio
The text was updated successfully, but these errors were encountered: