react-datasheet-grid icon indicating copy to clipboard operation
react-datasheet-grid copied to clipboard

Uncaught TypeError: (0 , react_virtual_1.useVirtualizer) is not a function

Open TigerDev007 opened this issue 1 year ago • 3 comments

After installing package, I have got the error like this. I used the typescript.

Screenshot_13

TigerDev007 avatar Feb 27 '24 04:02 TigerDev007

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)

Harsha1401 avatar Feb 27 '24 10:02 Harsha1401

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.

taylorraywilson avatar Mar 07 '24 19:03 taylorraywilson

Thanks you so much @taylorraywilson .

DIPANKAR-123 avatar Aug 14 '24 13:08 DIPANKAR-123