Unable to fix `Accessing element.ref was removed in React 19. ref is now a regular prop.` error
Unanswered
Tonkinese posted this in #help-forum
TonkineseOP
node_modules/.pnpm/@radix-ui+react-slot@1.0.2_react@19.0.0-rc-5c56b873-20241107_types-react@19.0.0-rc.1/node_modules/@radix-ui/react-slot/dist/index.mjs (40:47)
Hey guys, try as I might I'm unable to get rid of the above error. I've tried updating the package (it's listed as
"@radix-ui/react-slot": "^1.1.0"
in package.json
), but I'm still seeing those warnings. Any idea how to resolve this?1 Reply
TonkineseOP
My radix-ui package versions:
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-collapsible": "^1.1.0",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-navigation-menu": "^1.1.4",
"@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-radio-group": "^1.1.3",
"@radix-ui/react-scroll-area": "^1.0.5",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-separator": "^1.0.3",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-switch": "^1.1.0",
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-toast": "^1.1.5",
"@radix-ui/react-toggle": "^1.0.3",
"@radix-ui/react-tooltip": "^1.0.7"