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

useVirtualizer is not a function error after upgrading to 3.1.2 #681

Open
2 tasks done
Harsha1401 opened this issue Feb 27, 2024 · 0 comments
Open
2 tasks done

useVirtualizer is not a function error after upgrading to 3.1.2 #681

Harsha1401 opened this issue Feb 27, 2024 · 0 comments

Comments

@Harsha1401
Copy link

Describe the bug

We are using react-datasheet-grid (https://github.com/nick-keller/react-datasheet-grid), it is using @tanstack/react-virtual ,

We are getting below error , we see we are getting this on upgrade of @tanstack/react-virtual : 3.1.2

Grid.js:74 Uncaught TypeError: (0 , react_virtual_1.useVirtualizer) is not a function
at Grid (Grid.js:74:1)
at renderWithHooks (react-dom.development.js:12974:1)
at mountIndeterminateComponent (react-dom.development.js:15457:1)
at beginWork (react-dom.development.js:16510:1)
at HTMLUnknownElement.callCallback (react-dom.development.js:3551:1)
at Object.invokeGuardedCallbackDev (react-dom.development.js:3595:1)
at invokeGuardedCallback (react-dom.development.js:3650:1)
at beginWork$1 (react-dom.development.js:20646:1)
at performUnitOfWork (react-dom.development.js:19657:1)
at workLoopSync (react-dom.development.js:19602:1)

Your minimal, reproducible example

NA

Steps to reproduce

We are using react-datasheet-grid (https://github.com/nick-keller/react-datasheet-grid), it is using @tanstack/react-virtual ,

We are getting below error , we see we are getting this on upgrade of @tanstack/react-virtual : 3.1.2

Grid.js:74 Uncaught TypeError: (0 , react_virtual_1.useVirtualizer) is not a function
at Grid (Grid.js:74:1)
at renderWithHooks (react-dom.development.js:12974:1)
at mountIndeterminateComponent (react-dom.development.js:15457:1)
at beginWork (react-dom.development.js:16510:1)
at HTMLUnknownElement.callCallback (react-dom.development.js:3551:1)
at Object.invokeGuardedCallbackDev (react-dom.development.js:3595:1)
at invokeGuardedCallback (react-dom.development.js:3650:1)
at beginWork$1 (react-dom.development.js:20646:1)
at performUnitOfWork (react-dom.development.js:19657:1)
at workLoopSync (react-dom.development.js:19602:1)

Expected behavior

it should work as 3.0.4

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

OS : Windows
Browser: Chrome

tanstack-virtual version

v3.1.2

TypeScript version

No response

Additional context

No response

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant