0

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

  1. import '@david.kucsai/react-pdf-table';
  2. import Table from '@david.kucsai/react-pdf-table';
  3. 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.

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
James Shapiro
  • 4,805
  • 3
  • 31
  • 46

0 Answers0