-
Notifications
You must be signed in to change notification settings - Fork 200
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
Leva 0.9.35 color picker error : Cannot read properties of null (reading 'getBoundingClientRect') #508
Comments
Same problem here. |
Also encountering this issue |
It is specifically this line in the usePopin function for me.
|
Same :( |
same |
same here |
Here is a band-aid until there is a fix. Add an "overrides": {
"leva": {
"@radix-ui/react-portal": "1.0.2"
}
} Run,
|
Thanks ! PNPM version:
|
It's working with previous version: 0.9.34 |
Im on 0.9.35 and have this issue, but the band-aid solution works |
it work! |
Out of curiosity, how did you get the ERR_PNPM_INVALID_SELECTOR Cannot parse the "_comment" selector |
If you are using yarn
and then run: |
Band aid still works. Thanks @Sean-Bradley |
When official update? |
Same here guys ;) |
When pressing the color picker coloured square, a JS error occurs. (
[email protected]
)In Chrome and Edge, the error is,
In FireFox, the error is written differently,
The error does not happen with
[email protected]
, but does occur in[email protected]
E.g., This is a minimal example. Press the green square in the Leva panel and view the browser console.
https://k6m8gm-5173.csb.app/
react 18.3.1
react-dom 18.3.1
leva 0.9.35
I have also tried react 18.2.0 and the error still occurs.
This error occurs when using a bundler locally. I have tried Vite, React-Scripts, R3F-Pack and WebPack.
The error also occurs when using the newer CodeSandbox DevBox IDE, but not the legacy Sandbox IDE.
This CodeSandbox DevBox link below demonstrates the problem, it is a Vite project.
https://codesandbox.io/p/devbox/leva-color-picker-k6m8gm?file=%2Fsrc%2Findex.jsx
And here is a zip of the mini Vite project.
sandbox.zip
unzip it,
cd into folder,
Open http://localhost:5173/
And this is the minimal script.
The text was updated successfully, but these errors were encountered: