I have done npm install react-virtuoso and the latest package installed. This shows up in my package.json as “react-virtuoso”: “4.7.11”
However when I look in node_modules, I see the index.d.ts but no source, and compilation gives the error:
export ‘TableVirtuoso’ was not found in ‘react-virtuoso’.
My import statement is:
import {TableVirtuoso} from ‘react-virtuoso’;
At runtime this (understandably given the compilation error) throws:
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined
Does anyone know why the source for the module would not be present?
I have searched extensively but haven’t seen anyone else describing a similar problem
Keith Cowan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.