Installed AllenAI pdf-component-library using npm install @allenai/pdf-components . Used the code from Reader component. Unable to render Pdf documents. Errors : Unable to call method(). The context Provider may not be setup correctly.. Screenshot of console log below.
Installed AllenAI pdf-component-library using
npm install @allenai/pdf-components
. Used the code from Reader component. Unable to render Pdf documents. Errors :Unable to call method(). The context Provider may not be setup correctly.
. Screenshot of console log below.Relevant code snippets below :
package.json:
src/components/Pdf.js:
Any help is appreciated.