-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: package "@mui/x-tree-view" with tag "https://pkg.csb.dev/mui/mui-x/commit/1f23b33d/@mui/x-tree-view" not found, but package exists #4666
Comments
bun install
or bun add
with MUIbun install
or bun add
with @mui/lab
bun install
or bun add
with @mui/lab
Had same issue with package @mui/x-tree-view. Issue #4725 |
There may be a better title for this issue ticket.. It seems to be an issue with the @mui/x-tree-view specifically within the @mui/lab package file which is instead of using a version, its specifically grabbing from a commit.. Maybe bun is having a hard time with that? because that link does resolve. Yet what that error is saying is: "I cant find that package version you have in your package file" referring to that link. You can validate this issue by: -> copy @mui/lab folder from node_modules to root dir of project not a solution, but those are the steps that helped me identify what the problem was |
The bug is that we are expecting a tarball URL to include |
Facing the same issue with "@mui/lab": "^5.0.0-alpha.59". Any fixes? |
I have the same issue in yarn:
|
The solution is downgrading |
I tested this myself and it worked! The version previously installed in my |
Now working on @mui/lab 5.0.0-alpha.142 for me. |
It is not working for me on @mui/lab 5.0.0-alpha.142. Is there anything I need to check to make it work? |
Fwiw, I had to set the version to exactly 5.0.0-alpha.142 (not |
|
I was previously using import DateRangePicker from "@mui/lab/DateRangePicker"
import LocalizationProvider from "@mui/lab/LocalizationProvider";
import AdapterDateFns from "@mui/lab/AdapterDateFns";
<LocalizationProvider dateAdapter={AdapterDateFns}>
<DateRangePicker
startText="From"
endText="To"
PopperProps={{ ref: isDateCalOpen }}
value={persistedFilters[filter.filterName]}
onChange={(newValue, keyboardInputValue) => {
const parsedValue = newValue.map((date, index) =>
isValidDate(date) ? date : null
);
if (
keyboardInputValue &&
!isValidDate(new Date(keyboardInputValue)) &&
Array.isArray(parsedValue)
) {
return;
}
onFiltersChange(filter?.filterName, parsedValue, null, filter);
}}
renderInput={(startProps, endProps) => (
<>
<TextField {...startProps} error={false} />
<Box sx={{ mx: 2 }}> to </Box>
<TextField {...endProps} error={false} />
</>
)}
inputFormat="yyyy-MM-dd"
/>
</LocalizationProvider> |
Tested as of Bun v1.0.7, this now works:
If you're still experiencing this issue after upgrading Bun, let us know and we'll re-investigate. |
What version of Bun is running?
1.0.0
What platform is your computer?
Darwin 22.3.0 arm64 arm
What steps can reproduce the bug?
In a project with
@mui/lab
previously installed with Yarn or NPM. Remove node_modules and yarn.lock file then runbun install
What is the expected behavior?
Packages will be installed correctly without errors
What do you see instead?
bun install v1.0.0 (822a00c)
error: package "@mui/x-tree-view" with tag "https://pkg.csb.dev/mui/mui-x/commit/1f23b33d/@mui/x-tree-view" not found, but package exists
Additional information
No response
The text was updated successfully, but these errors were encountered: