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
sunny-greenOP•2y 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
continuing-cyan•2y ago
Maybe, please use lates beta.