Skip to content
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

Accessing element.ref was removed in React 19 #70

Open
OlympicAngel opened this issue Sep 19, 2024 · 0 comments
Open

Accessing element.ref was removed in React 19 #70

OlympicAngel opened this issue Sep 19, 2024 · 0 comments
Labels
PR welcome You can open a PR for this issue

Comments

@OlympicAngel
Copy link

Describe the bug
In react 19 error get thrown in the console , it is woking fine for now but its alerting ofr deprication.

Error Stack
Warning: Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.
at eval (webpack-internal:///(ssr)/./node_modules/@rc-component/trigger/es/TriggerWrapper.js:11:24)
at DomWrapper (webpack-internal:///(ssr)/./node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js:23:90)
at SingleObserver (webpack-internal:///(ssr)/./node_modules/rc-resize-observer/es/SingleObserver/index.js:23:24)
at ResizeObserver (webpack-internal:///(ssr)/./node_modules/rc-resize-observer/es/index.js:24:24)
at eval (webpack-internal:///(ssr)/./node_modules/@rc-component/trigger/es/index.js:61:34)
at SelectTrigger (webpack-internal:///(ssr)/./node_modules/rc-select/es/SelectTrigger.js:65:25)
at div
at eval (webpack-internal:///(ssr)/./node_modules/rc-select/es/BaseSelect/index.js:61:18)
at eval (webpack-internal:///(ssr)/./node_modules/rc-select/es/Select.js:89:18)
at InternalSelect (webpack-internal:///(ssr)/./node_modules/antd/es/select/index.js:63:24)
at div
at T (webpack-internal:///(ssr)/./node_modules/react-js-cron/dist/esm/index.js:13:15432)
at div
at L (webpack-internal:///(ssr)/./node_modules/react-js-cron/dist/esm/index.js:13:19205)
...

To Reproduce
Steps to reproduce the behavior:

  1. using react 19
  2. mount component
  3. Goto console
  4. See error

Expected behavior
Not error :P

Versions (please complete the following information):

  • react-js-cron version: 5.0.1
  • React version: 19
  • OS: Windows
  • Browser: Chrome
  • Framwork: NextJS v15

Additional context
Add any other context about the problem here.

@xrutayisire xrutayisire added the PR welcome You can open a PR for this issue label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR welcome You can open a PR for this issue
Projects
None yet
Development

No branches or pull requests

2 participants