T
TanStack3y ago
deep-jade

Cannot find module '@tanstack/react-virtual'

Anyone run into issues finding the node module from a .spec file? My component itself can access it fine, but when trying to import the component through a test file it cannot find the module. I assume it's user error with how I've installed the module (pnpm), but throwing it out in case others saw something similar.
2 Replies
deep-jade
deep-jadeOP3y ago
FWIW, I had to update the import to use 'react-virtual' instead. Believe it was an issue with jest and the mapping of the version which contained 'alpha' in the version for @tanstack/react-virtual
rare-sapphire
rare-sapphire3y ago
Maybe, please use lates beta.

Did you find this page helpful?