react-datasheet-grid
react-datasheet-grid copied to clipboard
Uncaught TypeError: (0 , react_virtual_1.useVirtualizer) is not a function
After installing package, I have got the error like this. I used the typescript.
we are also getting same error , this is because of auto upgrade of @tanstack/react-virtual to 3.1.3... it is working we use
like below in package.json@tanstack/react-virtual : 3.0.4 as "resolutions": { "@tanstack/react-virtual": "3.0.4" }
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)
we are also getting same error , this is because of auto upgrade of @tanstack/react-virtual to 3.1.3... it is working we use like below in package.json@tanstack/react-virtual : 3.0.4 as
"resolutions": { "@tanstack/react-virtual": "3.0.4" }
For npm users, it is not resolutions, it is overrides. Yarn is resolutions.
Thanks you so much @taylorraywilson .