I am referring to this version of react-pdf, not the other one.
When I run the following commands:
git clone https://github.com/diegomura/react-pdf.git
cd react-pdf
npm install "@david.kucsai/react-pdf-table"
Then add a Table component to the pageWrap example and run yarn example -- pageWrap
, I naturally run into the ReferenceError: Table is not defined
error.
However, every import statement I have tried, like
import '@david.kucsai/react-pdf-table';
import Table from '@david.kucsai/react-pdf-table';
import {Table} from '@david.kucsai/react-pdf-table';
has failed with a code: 'MODULE_NOT_FOUND'
error.
I am puzzled as to how one is supposed to import this package.